Re: Async Pages and Thread Pools
- From: "Chris Marsh" <cjmarsh@xxxxxxxxxxxxxxxx>
- Date: Fri, 8 Feb 2008 14:04:19 -0000
Kevin
Many thanks for the response.
"Kevin Spencer" <unclechutney@localhost> wrote in message
news:ux9hP0kaIHA.536@xxxxxxxxxxxxxxxxxxxxxxx
The advantage of Asynch ASP.Net pages is seen when the number of
concurrent requests exceeds the number of available request-processing
threads in the thread pool. The size of the thread pool is limited, and if
exceeded, successive requests can be delayed, or if there are enough
requests, some may eventually time out waiting for a thread, resulting in
a "503 Server Unavailable" error from the server. Asynch ASP.Net pages
return the request-processing thread to the thread pool immediately, using
another thread to do the actual processing. When the processing is
completed, another request-processing thread is grabbed to return the
Response to the client.
So, if we have an IIS thread pool size of 25 and 25 requests are made that
involve intensive IO, other requests (for inexpensive resources that
*should* be served very quickly) will not be served until at least one of
the other threads is freed up. If we use asynchronous page processing, we
hand off processing of the intensive IO operations to threads outside the
IIS thread pool, thus freeing up threads from the IIS thread pool to service
other requests.
What I don't understand is what benefit using asynchronous page processing
has over simply increasing the number of threads in the IIS thread pool. Why
does it matter whether threads are taken from the IIS thread pool or not?
[..]
http://msdn.microsoft.com/msdnmag/issues/05/10/WickedCode/
A useful resource, thanks.
--
Regards
Chris Marsh
.
- Follow-Ups:
- Re: Async Pages and Thread Pools
- From: Steven Cheng[MSFT]
- Re: Async Pages and Thread Pools
- References:
- Async Pages and Thread Pools
- From: Chris Marsh
- Re: Async Pages and Thread Pools
- From: Kevin Spencer
- Async Pages and Thread Pools
- Prev by Date: Re: loading data from file to db
- Next by Date: Re: SerialPort problem - part 2
- Previous by thread: Re: Async Pages and Thread Pools
- Next by thread: Re: Async Pages and Thread Pools
- Index(es):
Relevant Pages
|
Loading