473,386 Members | 2,042 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

MultiThreading Web Services

I'm a tad confused about Web Services and Multi-Threadling. I have read in
old postings that IIS handles some level of "multithreading" for a web
service. I know that technology has changed a lot since that posting and was
wondering what the current status is.

Does IIS handle some level of multi-threading for a web service? If so, is
it sufficient so that the developer need not worry with providing an extra
level of multi-threading? In the event that multi-threading is not provided
by IIS, can you point me to an article or some sort of help that tells you
how to write such a web service?

thanks for any help you can provide!
Jun 20 '07 #1
2 5423
"sable" <ab****@discussions.microsoft.comwrote in message
news:AA**********************************@microsof t.com...
I'm a tad confused about Web Services and Multi-Threadling. I have read
in
old postings that IIS handles some level of "multithreading" for a web
service. I know that technology has changed a lot since that posting and
was
wondering what the current status is.

Does IIS handle some level of multi-threading for a web service? If so,
is
it sufficient so that the developer need not worry with providing an extra
level of multi-threading? In the event that multi-threading is not
provided
by IIS, can you point me to an article or some sort of help that tells you
how to write such a web service?
IIS doesn't handle the multi-threading, ASP.NET does. Each request comes in
on a separate thread pool thread. You can also make your service itself be
asynchronous. You should consider doing this if it takes a substantial
amount of time to execute. That is because it will be tying up the thread
pool thread while it executes.
--
John Saunders [MVP]
Jun 20 '07 #2
=?Utf-8?B?c2FibGU=?= <ab****@discussions.microsoft.comwrote in
news:AA**********************************@microsof t.com:
Does IIS handle some level of multi-threading for a web service? If
so, is it sufficient so that the developer need not worry with
providing an extra level of multi-threading? In the event that
multi-threading is not provided by IIS, can you point me to an article
or some sort of help that tells you how to write such a web service?
Each request runs in its own thread context so generally speaking you do
not need to implement additional multi-threading.

However, if you're planning on doing a long running process, you should
perhaps split the long running process into a Windows Service and call it
from the web. That way the process can run at it's own pace without tying
up IIS.

Jun 26 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Mark Sisson | last post by:
Hey all. I've got a legacy COM dll that I'd like to use in my multithreaded C# app. Problem though is when I create several instances of the interop object and start them on their own threads...
16
by: Robert Zurer | last post by:
Can anyone suggest the best book or part of a book on this subject. I'm looking for an in-depth treatment with examples in C# TIA Robert Zurer robert@zurer.com
9
by: Popoxinhxan | last post by:
Dear experts, i want to develop an client application that consume the google search web service. In my MainForm i have a method to retrieve all the search result e.g. GetGoogleResults(). Now i...
5
by: sarge | last post by:
I would like to know how to perform simple multithreading. I had created a simple form to test out if I was multithreading properly, but got buggy results. Sometime the whole thig would lock up...
4
by: request | last post by:
Hi I have written a program which receives mails from server using POP3. it's downloading sequentially. now i want to use the multithreading in this regard where i can create threads for each and...
1
by: Ariel Gimenez | last post by:
Hi, in my web application im calling another component that performs tasks that takes too much time, im wandering what is the correct form to handle this... i mean i think i should call the...
1
by: Simon Hart | last post by:
Hi, I thought I'd just open a thread in an attempt to get peoples feelers with regards to multithreading vs Async Web Service processing. Of course Web Services makes it easy to do Async...
1
by: abhra.haldar | last post by:
Hi: I have an ASP.NET page which makes a synchronous Web services method call. At the same time, however, I wanted it to load another page as an iFrame (i've also tried as a javascript popup...
7
by: Ray | last post by:
Hello, Greetings! I'm looking for a solid C++ multithreading book. Can you recommend one? I don't think I've seen a multithreading C++ book that everybody thinks is good (like Effective C++ or...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.