Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > validity of a statement from a book

Reply
Thread Tools

validity of a statement from a book

 
 
parez
Guest
Posts: n/a
 
      10-18-2008

"Asynchronous Web pages can improve performance in scenarios where the
thread pool might be limiting performance."

The asynchronous stuff is done using IHttpAsyncHandler. Wouldnt it use
the same threads from the thread pool?
 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      10-18-2008
yes and no.

whether your page can benefit from being written as asynchronous depends
on how many i/o, network or database calls the page makes. a typical
database call may take 50-100ms. during this time, the request thread is
tied up in an i/o wait. if the asynchronous model is used, during this
wait, the thread could be used to process another request that is not in
an i/o state.

the trick to understand is that the page processing event model allows
switching the request processing thread at each page event (this was
true in asp.net 1.0). asynchronous i/o was dangerous in this model, as
the completion notification of the asynchronous event happens on the
thread that started it. this was a problem if asp switched the
processing thread during the request before completion of the
asynchronous request.

with the new model, there is an page cycle event where all asynchronous
requests are started, and a page cycle event that called when all the
requests have completed.

due to thread switching during a request this is still the only
supported way to use asynchronous requests. this is also why thread
local storage will not work, or any thread context changes made during
processing of a page request.


-- bruce (sqlwork.com)


parez wrote:
> "Asynchronous Web pages can improve performance in scenarios where the
> thread pool might be limiting performance."
>
> The asynchronous stuff is done using IHttpAsyncHandler. Wouldnt it use
> the same threads from the thread pool?

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Book validity Dotnetin MCAD 5 08-04-2005 12:30 PM
BGP vs OSPF routes validity matteo_cardelli@yahoo.co.uk Cisco 3 05-12-2005 06:53 AM
duration of validity =?Utf-8?B?Y2hlbGxhbQ==?= MCSD 0 05-19-2004 11:31 PM
Validity of MCSD .NET Kamal Ahmed MCSD 2 10-04-2003 08:52 AM
Re: Validity of Windows2000 Kian Wah, Lai MCSE 1 07-15-2003 05:16 PM



Advertisments