Click here to Skip to main content
15,899,025 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reading Microsoft IE Proxy Settings Pin
Stephane Rodriguez.15-Mar-03 2:43
Stephane Rodriguez.15-Mar-03 2:43 
GeneralRe: Reading Microsoft IE Proxy Settings Pin
Thomas Freudenberg2-Jun-03 1:43
Thomas Freudenberg2-Jun-03 1:43 
GeneralC# DLL in VC++ Pin
Baatezu14-Mar-03 19:42
Baatezu14-Mar-03 19:42 
GeneralRe: C# DLL in VC++ Pin
Stephane Rodriguez.14-Mar-03 20:08
Stephane Rodriguez.14-Mar-03 20:08 
GeneralRunning .NET Application Pin
Sassan Komeili Zadeh14-Mar-03 19:29
Sassan Komeili Zadeh14-Mar-03 19:29 
GeneralActiveDirectory / LDAP Searching Pin
Adrian Hall14-Mar-03 19:07
Adrian Hall14-Mar-03 19:07 
GeneralRe: ActiveDirectory / LDAP Searching Pin
Adrian Hall16-Mar-03 14:31
Adrian Hall16-Mar-03 14:31 
GeneralA question about the ThreadPool class Pin
Marc Clifton14-Mar-03 13:47
mvaMarc Clifton14-Mar-03 13:47 
From reading a couple articles on CP and other sources, like this one:

http://www.dotnet247.com/247reference/a.aspx?u=http://www.c-sharpcorner.com/Code/2002/April/MtP4MtVsMt.asp[^]

I have the following understanding about the ThreadPool class that I'd like to verify. And that is, that the ThreadPool manages up to 25 threads (the default limit), but that ONLY ONE THREAD can be executing. In other words, the OS controls the CPU to timeslice between the application thread and ONLY ONE worker thread, regardless of how many the ThreadPool is managing. Is this correct?

For my requirements, I'd like something more akin to this article:

http://www.codeproject.com/useritems/threadlibrary.asp?target=threadpool[^]

which, if I understand it correctly, pre-creates a pool of threads and assigns them to various worker processes that exist in a queue. The assumption here, unlike ThreadPool, is that ALL the threads will be busy doing something, and the application will be creating worker processes (but not threads). The point of this class is to reduce the overhead of constantly creating and destroying threads. Now, I don't think this is what C#'s ThreadPool class does.

Is this view of the ThreadPool class correct?

Thanks!

Marc

Help! I'm an AI running around in someone's f*cked up universe simulator.
Sensitivity and ethnic diversity means celebrating difference, not hiding from it. - Christian Graus
Every line of code is a liability - Taka Muraoka
Microsoft deliberately adds arbitrary layers of complexity to make it difficult to deliver Windows features on non-Windows platforms--Microsoft's "Halloween files"

GeneralRe: A question about the ThreadPool class Pin
James T. Johnson14-Mar-03 17:54
James T. Johnson14-Mar-03 17:54 
GeneralRe: A question about the ThreadPool class Pin
Marc Clifton15-Mar-03 5:51
mvaMarc Clifton15-Mar-03 5:51 
GeneralRe: A question about the ThreadPool class Pin
leppie14-Mar-03 21:14
leppie14-Mar-03 21:14 
GeneralRe: A question about the ThreadPool class Pin
Marc Clifton15-Mar-03 5:57
mvaMarc Clifton15-Mar-03 5:57 
GeneralRe: A question about the ThreadPool class Pin
leppie15-Mar-03 7:23
leppie15-Mar-03 7:23 
GeneralRe: A question about the ThreadPool class Pin
Marc Clifton17-Mar-03 3:28
mvaMarc Clifton17-Mar-03 3:28 
GeneralRe: A question about the ThreadPool class Pin
Arun Bhalla17-Mar-03 16:55
Arun Bhalla17-Mar-03 16:55 
QuestionRelative and absolute path ? Pin
Chris Richner14-Mar-03 13:33
Chris Richner14-Mar-03 13:33 
AnswerRe: Relative and absolute path ? Pin
James T. Johnson14-Mar-03 17:46
James T. Johnson14-Mar-03 17:46 
GeneralRe: Relative and absolute path ? Pin
Chris Richner17-Mar-03 4:40
Chris Richner17-Mar-03 4:40 
GeneralRe: Relative and absolute path ? Pin
James T. Johnson17-Mar-03 15:02
James T. Johnson17-Mar-03 15:02 
GeneralRe: Relative and absolute path ? Pin
James T. Johnson17-Mar-03 16:33
James T. Johnson17-Mar-03 16:33 
GeneralRe: Relative and absolute path ? Pin
Chris Richner18-Mar-03 9:30
Chris Richner18-Mar-03 9:30 
Generalconvert bitmap to bytes[] !!! Pin
Dalia14-Mar-03 10:08
Dalia14-Mar-03 10:08 
GeneralRe: convert bitmap to bytes[] !!! Pin
Anonymous14-Mar-03 10:31
Anonymous14-Mar-03 10:31 
GeneralRe: convert bitmap to bytes[] !!! Pin
Smitha Nishant14-Mar-03 14:05
protectorSmitha Nishant14-Mar-03 14:05 
GeneralRe: convert bitmap to bytes[] !!! Pin
Dalia15-Mar-03 10:59
Dalia15-Mar-03 10:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.