ThredPool. Too many threads opened

  • Thread starter Thread starter SMike
  • Start date Start date
S

SMike

I use ThreadPool to manage multiple http requests. After a heavy load NT
ProcessViewer shows 64 threads opened. How is that possible?
As I know it could be no more then 25 threads opened per processor. Is there
a way to check if some threads are locked? How can I close them?


Thanks in advance
 
The Threadpool has two separate pools; one for normal worker threads and
another for IOC threads.
The size of the pools is respectively (in v1.1) 25 and 1000 (per CPU per
process).
So what you actually see is the total of the regular process threads plus
the threads in both pools, a figure of 64 is quite normal as the Http
requests will use IO threads from the IOC pool.
You can retrieve the number of threads used per pool by calling
Threadpool.GetAvailableThreads(...)

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top