In a way it is neither... Some of it has to do with the amount of data being sent over the wire, but the processing of the request is extremely slow even though utilization on the server is only around 5%. So I wouldn't really consider it "heavy processing".
-----Original Message----- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Dave Heizer Sent: Wednesday, April 21, 2004 5:07 PM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] Multiple Threads or ThreadPool? Is the web service slow because it is performing heavy processing to handle each call or is it just slow "relatively" due to going over the wire? If it is the former, I doubt you could run many threads before maxing out the web service. -----Original Message----- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of stefandemetz Sent: Wednesday, April 21, 2004 4:51 PM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] Multiple Threads or ThreadPool? use the custom threadpool of Mike Woodring at http://www.bearcanyon.com/dotnet/ some swear by it Stefan http://www.dotnetjunkies.com/weblog/stefandemetz -----Original Message----- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] Behalf Of Ivaylo Guberov Sent: Wednesday, April 21, 2004 11:06 PM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] Multiple Threads or ThreadPool? "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 DevelopMentorR 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 DevelopMentorR 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 --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.661 / Virus Database: 424 - Release Date: 19/04/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.661 / Virus Database: 424 - Release Date: 19/04/2004 =================================== This list is hosted by DevelopMentorR 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(r) 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
