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.

Re: Thread Limits by Patrice

Patrice
Tue Oct 18 12:54:25 CDT 2005

From the top of my head if should be available as shared properties from the
ThreadPool class and around...

--
Patrice

"wschaub" <wschaub@discussions.microsoft.com> a écrit dans le message de
news:D4538410-B1B5-4249-BB25-C48ECDD29C3C@microsoft.com...
> 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.



Re: Thread Limits by Alvin

Alvin
Tue Oct 18 13:26:59 CDT 2005

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
-------------------------------------------------------



"wschaub" <wschaub@discussions.microsoft.com> wrote in message
news:D4538410-B1B5-4249-BB25-C48ECDD29C3C@microsoft.com...
> 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.



Re: Thread Limits by Jon

Jon
Tue Oct 18 14:31:23 CDT 2005

<"Alvin Bruney - ASP.NET MVP" <www.lulu.com/owc>> wrote:
> 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.

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too

Re: Thread Limits by wschaub

wschaub
Wed Oct 19 00:37:01 CDT 2005

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.

"Jon Skeet [C# MVP]" wrote:

> <"Alvin Bruney - ASP.NET MVP" <www.lulu.com/owc>> wrote:
> > 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.
>
> --
> Jon Skeet - <skeet@pobox.com>
> http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
> If replying to the group, please do not mail me too
>

Re: Thread Limits by Jon

Jon
Wed Oct 19 01:28:28 CDT 2005

wschaub <wschaub@discussions.microsoft.com> wrote:
> 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/

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too

Re: Thread Limits by Alvin

Alvin
Thu Oct 20 10:51:09 CDT 2005

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
-------------------------------------------------------



"Jon Skeet [C# MVP]" <skeet@pobox.com> wrote in message
news:MPG.1dbf5debd590514f98c947@msnews.microsoft.com...
> <"Alvin Bruney - ASP.NET MVP" <www.lulu.com/owc>> wrote:
> > 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.
>
> --
> Jon Skeet - <skeet@pobox.com>
> http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
> If replying to the group, please do not mail me too