Re: Multithreading and performance
- From: "Jurgen" <jurgenDOTdebruyneATgmailDOTcom>
- Date: Tue, 08 Nov 2005 08:30:48 -0800
Miha Markic [MVP C#] wrote:
> Why do you limit the queue size?
In fact I use a static length array. I realize now that eg using the Queue class would be more
appropiate.
> It might be interesting to find the bottleneck
both the calculations and I/O take some time, but because the number crunching starts while data
is still loading gives me the performance improvement. In fact, eliminating thread 3 and putting
the write operations in thread 2 gives me more or less the same result as using 3 threads.
So multithreading the calculations won't give a big difference on a sigle CPU-single core system I
understand. Do you know how can I retrieve the numbre of cores of a system?
I realize that multithreading can be a very powerful method of speeding up things, to bad I never
paid it much interest. It seemed a bit too 'scary', but once you get working with it, it isn't that
bad.
--
Jurgen
.
- References:
- Re: Multithreading and performance
- From: Simon Watson
- Re: Multithreading and performance
- From: Jurgen
- Re: Multithreading and performance
- Prev by Date: HTTP status 401: Unauthorized when accessing web service method via winform in same VS2005 solution.
- Next by Date: Uri with "@" in username
- Previous by thread: Re: Multithreading and performance
- Next by thread: Re: Insert Into with parameter
- Index(es):
Relevant Pages
|