471,086 Members | 853 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,086 software developers and data experts.

5 questions on thread pools!

Hi,

I have some questions concerning thread pools. I've marked the
questions by number in the text.

First I'd like to know when which thread pools an application uses. I
know ASP.NET uses the CLR common thread pool. (1a) Is there a way
around this? (1b) Can ASP.NET application have it's own pool? Is there
a setting in IIS for this? (2) If ASP:NET application uses the CLR
common pool is this also true for Web Services running on the IIS? (3)
Does IIS applications have anything to do with this?

Ok, so ASP:NET uses the CLR pool. What about ordinary .NET based
applications then? (4a) Do they have their own? (4b) How many thread
are usually created in such a pool? (4c) Can I/should I change this?

Finally I'd like to know the best way of monitoring the different
pools. (5) Can I use the performance monitoring tool to watch the CLR
pool as well as other thread pools?

Thanks in advance!

Richard

Mar 7 '07 #1
1 2111
There can be only one standard thread pool (System.Threading.ThreadPool) in
a .NET process, wheiter it is a "ordinary" or ASP.NET
application/WebService.
The thread pool is further broken down to handle two distinct types of
operations:
Normal thread execution (worker threads, but also timer callbacks), IO
completion handling (IO threads for ansychronous IO processing, e.g.,
BeginXX/EndXXX).

Native applications (non .net), like IIS and others can do other things.

The standard thread pool manager defaults to 25 worker threads x CPU (and
1000 IO threads), but the value can be changed if you like by using
SetMaxThreads method. The thread pool can go over to that 25 if it thinks it
needs to.

Since there are no more than 1 thread poo, the monitoring is easy.
This might help:
http://blogs.msdn.com/davidklinems/a...10/491570.aspx
<ri**************@gmail.comha scritto nel messaggio
news:11**********************@t69g2000cwt.googlegr oups.com...
Hi,

I have some questions concerning thread pools. I've marked the
questions by number in the text.

First I'd like to know when which thread pools an application uses. I
know ASP.NET uses the CLR common thread pool. (1a) Is there a way
around this? (1b) Can ASP.NET application have it's own pool? Is there
a setting in IIS for this? (2) If ASP:NET application uses the CLR
common pool is this also true for Web Services running on the IIS? (3)
Does IIS applications have anything to do with this?

Ok, so ASP:NET uses the CLR pool. What about ordinary .NET based
applications then? (4a) Do they have their own? (4b) How many thread
are usually created in such a pool? (4c) Can I/should I change this?

Finally I'd like to know the best way of monitoring the different
pools. (5) Can I use the performance monitoring tool to watch the CLR
pool as well as other thread pools?

Thanks in advance!

Richard

Mar 7 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by JS | last post: by
5 posts views Thread by Kieran Benton | last post: by
5 posts views Thread by Steve - DND | last post: by
4 posts views Thread by Diffident | last post: by
4 posts views Thread by Smithers | last post: by
9 posts views Thread by Jon Slaughter | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.