473,394 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 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 2211
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: David Sworder | last post by:
This message was already cross-posted to C# and ADO.NET, but I forgot to post to this "general" group... sorry about that. It just occured to me after my first post that the "general" group readers...
7
by: David Sworder | last post by:
Hi, I'm developing an application that will support several thousand simultaneous connections on the server-side. I'm trying to maximize throughput. The client (WinForms) and server communicate...
8
by: JS | last post by:
I am monitoring/controlling some realtime activities in a manufacturing process. When a part comes into my station, I have a bunch of processing to do. There are 30-40 data acquisition and data...
5
by: Kieran Benton | last post by:
Hello, I'm currently in the tail end process of developing a high scalability server for my employer. Essentially it receives short socket based connections with an ASCII message, parses that...
5
by: Steve - DND | last post by:
If I declare a property as ThreadStatic, or I use the thread Context to set values on, will they be retained after a page processes? When a page finishes, is all data on the thread wiped before it...
4
by: Diffident | last post by:
Hello All, IIS 6.0 - I have an application which resides in its own application pool. Does anyone know if we can create multiple application pools for the same application? If we can create...
4
by: Smithers | last post by:
Does the FileSystemWatcher class, when enabled, spawn a new thread for itself? I googled and somehow just found people having random problems with the FileSystemWatcher class and the MSDN docs....
9
by: Jon Slaughter | last post by:
I'm using Thread and ThreadStart to create a thread for testing purposes and I do not want to use a pool because the thread exists for the life time of the app. Eventually I might move on to using...
34
by: Creativ | last post by:
Why does Thread class not support IDisposable? It's creating quite some problem. Namely, it can exhaust the resource and you have not control over it.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.