Sunday, September 22, 2013

How Requests Are Processed by the Thread Pool

Let us know the answer of following questions.
Ques: How requests are processed by the thread pool?
Ques: What is HTTP 503 Error?
Ques: What is thread starvation in ASP .Net

Http 503 errorOn the Web server, the .NET Framework maintains a pool of threads that are used to service ASP.NET requests. When a request arrives, a thread from the pool is dispatched to process that request. If the request is processed synchronously, the thread that processes the request is blocked while the request is being processed, and that thread cannot service another request. 




Thread Starvation & HTTP 503 Error
This might not be a problem, because the thread pool can be made large enough to accommodate many blocked threads. However, the number of threads in the thread pool is limited. In large applications that process multiple simultaneous long-running requests, all available threads might be blocked. This condition is known as thread starvation. When this condition is reached, the Web server queues requests. If the request queue becomes full, the Web server rejects requests with an HTTP 503 status (Server Too Busy).

0 comments:

 
Powered by Code Imagine