Thread Limits

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Where can we find the actual limits on threads, i.e. active threads, worker
pools, worker pool threads, ... in a .NET environment? We would like to find
information on the limits around general worker threads and worker pool
threads.
 
From the top of my head if should be available as shared properties from the
ThreadPool class and around...
 
There are 50 threads in 2 pools, 25 IO, 25 other

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
 
There are 50 threads in 2 pools, 25 IO, 25 other

No - it depends on how many processors you have. The ThreadPool
allocates 25 threads per available processor. I don't know if there are
25 for IO per available processor - it's not something I've looked it.
 
Do you have any information on thread usage in general. We created a test
program using sockets and remoting and it "seems" that only async delegates
use one of the 25 threads of the pool, whereas the others use the IO
completion threads. There seems to be 25 worker threads per CPU, but a fixed
number of 1000 IO completion threads (irrespective of CPU number). What all
of this all boils down to is that .net remoting is more performant than
originally thought since its not limited to 25 possible threads, but rather
1000.
 
wschaub said:
Do you have any information on thread usage in general. We created a test
program using sockets and remoting and it "seems" that only async delegates
use one of the 25 threads of the pool, whereas the others use the IO
completion threads. There seems to be 25 worker threads per CPU, but a fixed
number of 1000 IO completion threads (irrespective of CPU number). What all
of this all boils down to is that .net remoting is more performant than
originally thought since its not limited to 25 possible threads, but rather
1000.

Right - I wouldn't be surprised. IO completion ports are something I
have very little experience with, unfortunately. For the rest of what I
know about threads, see
http://www.pobox.com/~skeet/csharp/threads/
 
ya ya, i forgot that caveat. that's correct.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
 
Back
Top