Re: Async Pages and Thread Pools
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng[MSFT])
- Date: Mon, 11 Feb 2008 02:28:44 GMT
Hi Chris,
The following article also show you some benefits and results of using Asyc
page. One thing I think good there is it also mentioned what you need to
take care when determine to use async page. That's whether the operation
you want to run in async page is executing on a custom thread rather than
thread-pool thread. If the task itself also ocuppy thread-pool thread,
async page won't help much:
#Async Pages in ASP.NET 2.0 - some results
http://www.pluralsight.com/blogs/fritz/archive/2004/10/19/2892.aspx
You can also get more info about ASP.NET threading model through the
following webcast materials:
#Support WebCast: Microsoft ASP.NET Threading
http://support.microsoft.com/kb/820913
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: "Chris Marsh" <cjmarsh@xxxxxxxxxxxxxxxx><ux9hP0kaIHA.536@xxxxxxxxxxxxxxxxxxxx>
References: <OKjj3GkaIHA.4180@xxxxxxxxxxxxxxxxxxxx>
Subject: Re: Async Pages and Thread Poolsif
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
inexceeded, successive requests can be delayed, or if there are enough
requests, some may eventually time out waiting for a thread, resulting
usinga "503 Server Unavailable" error from the server. Asynch ASP.Net pages
return the request-processing thread to the thread pool immediately,
serviceanother 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
other requests.Why
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.
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: Chris Marsh
- Re: Async Pages and Thread Pools
- References:
- Async Pages and Thread Pools
- From: Chris Marsh
- Re: Async Pages and Thread Pools
- From: Kevin Spencer
- Re: Async Pages and Thread Pools
- From: Chris Marsh
- Async Pages and Thread Pools
- Prev by Date: Re: out of space in boot partition of C drive
- Next by Date: Anyone who uses Windows 2008 Server on the Desktop
- Previous by thread: Re: Async Pages and Thread Pools
- Next by thread: Re: Async Pages and Thread Pools
- Index(es):
Relevant Pages
|