473,508 Members | 2,250 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

validity of a statement from a book


"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?
Oct 18 '08 #1
1 884
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?
Oct 18 '08 #2

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

Similar topics

12
2477
by: Troy | last post by:
My ISP provides me with 2 servers: one for normal web hosting (non-PHP) and a CGI server (with PHP). I create my website using fusion 7 and upload this in its entirity to the web hosting server....
7
1456
by: Michael Sgier | last post by:
Hi folks class X { private: CTexture *modelTex; // texture data } CTexture* X::Load()
2
1162
by: anolith | last post by:
Hello Everyone! I'm wondering if someone could help me out with this problem. We have a database in Access for our library. We also have it linked to a web search. If a book is authored by two...
16
3354
by: jacob navia | last post by:
Valid pointers have two states. Either empty (NULL), or filled with an address that must be at a valid address. Valid addresses are: 1) The current global context. The first byte of the data...
5
5593
by: Andreas Müller | last post by:
Hi, I was wondering, if there is something similar in VB.NET like the using statement in C#. What it does is to automatically call Dispose on the object decrared with in the statement when the...
9
1638
by: Andy Dingley | last post by:
Here's a chunk of a longer piece of punditry I'm working on, re: the choices between doctypes for authoring and the State of the Union for validity. I've got a bucketload of nasty code and a bunch...
40
2688
by: nufuhsus | last post by:
Hello all, First let me appologise if this has been answered but I could not find an acurate answer to this interesting problem. If the following is true: C:\Python25\rg.py>python Python...
8
8680
by: Mehbs | last post by:
I created a very simple form. There are 2 text boxes; 1 for entering account number and other to display its desription. I also placed buttom so when it is clicked, select statement underneath...
4
3277
by: istillshine | last post by:
I have a function foo, shown below. Is it a good idea to test each argument against my assumption? I think it is safer. However, I notice that people usually don't test the validity of...
4
2264
by: Badboy112 | last post by:
Hi guys im not sure what i am doinf wrong but the if statement in the action performed is not working any ideas import java.io.*; import javax.swing.*; import java.awt.*; import...
0
7227
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
7127
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...
1
7054
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5633
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4713
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3188
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1564
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
768
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
424
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.