NETRY
NETRY

Reputation: 57

How IIS Server works(threading)

I have a question about processing new user(by IIS server), who start work with ASP.NET Web-application. What happens with threads pool when new user connect? Does the IIS server allocate a new thread for each user? Are there any limits for number of threads? I would be grateful for information about it.

Upvotes: 3

Views: 1869

Answers (1)

usr
usr

Reputation: 171168

HTTP has no notion of users or sessions, neither has IIS. Both think in terms of requests.

In ASP.NET incoming requests are put into a queue and worked on by thread-pool tasks.

Open keep-alive connections do not consume threading resources. IIS manages them in the Windows kernel using async IO.

ASP.NET has a limit how many requests it will queue. This limit is quite high. The thread-pool is the standard .NET thread-pool and all its limits apply as well. Normally, you don't have to worry about these limits.

Upvotes: 4

Related Questions