"The thread pool is created the first time you create an instance of the
ThreadPool class. The thread pool has a default limit of 25 threads per
available processor, which could be changed using CorSetMaxThreads as
defined in the mscoree.h file. Each thread uses the default stack size and
runs at the default priority. Each process can have only one operating
system thread pool."

you have to proceed about 300 000 or more right ? better use your own thread
pool engine which need to be more close connected to your logic

also you're will not be the only one person that will use ThreadPool ?



----- Original Message -----
From: "Paul Johansen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 21, 2004 11:20 PM
Subject: [ADVANCED-DOTNET] Multiple Threads or ThreadPool?


I need to process (take the data from each row and use it to call a
relatively slow Web service) a DataRowCollection of about 300,000
records and would like to divide it up and multithread the processing.



My initial thought was to spawn x number of threads and have them each
process a portion of the rows. I have not used the ThreadPool before,
but would adding each row to the pool with QueueUserWorkItem be a better
solution?



Thanks in advance,



Paul


===================================
This list is hosted by DevelopMentor�  http://www.develop.com
Some .NET courses you may be interested in:

NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnetls

View archives and manage your subscription(s) at http://discuss.develop.com

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
Some .NET courses you may be interested in:

NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnetls

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to