Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can an ASP.NET worker thread handle multiple requests at once?

I know that ASP.NET will execute a request on a single thread from a pool. Is the inverse true? Will a single ASP.NET request exclusively hold a worker thread until the request completes, or will ASP.NET re-use the same thread between multiple concurrent requests?

like image 264
flatline Avatar asked Sep 14 '25 22:09

flatline


1 Answers

Even your first statement is not entirely true.

ASP.NET can exhibit thread agility - different parts of a request's lifecycle can (in some cases - usually if some requests are long-running, I believe, or if you're responding asynchronously) run in different threads. See this article (archived) for more information. Unfortunately I haven't seen very much in the way of clear, unambiguous and authoritative documentation on this topic :(

like image 191
Jon Skeet Avatar answered Sep 17 '25 18:09

Jon Skeet



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!