Re: Multithreading and performance

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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
.



Relevant Pages

  • Re: Multithreading in .NET CF
    ... BackgroundWorker class for the .NET CF that works with an input queue. ... I don't know people with the information I need, because either don't use .NET or because they have not learnt any multithreading basics. ... SPECIFICATIONS: ... It's because I'm doing a custom control that loads images in background when a path is specified. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Multithreading in .NET CF
    ... I'm writing an implementation for something like the BackgroundWorker class for the .NET CF that works with an input queue. ... I don't know people with the information I need, because either don't use .NET or because they have not learnt any multithreading basics. ... I want a class that is able to process an input queue to generate an otput queue doing all the required operations in a separate thread. ... It's because I'm doing a custom control that loads images in background when a path is specified. ...
    (microsoft.public.dotnet.framework.compactframework)
  • RE: Multithreading in .NET CF
    ... BackgroundWorker class for the .NET CF that works with an input queue. ... use .NET or because they have not learnt any multithreading basics. ... It's because I'm doing a custom control that loads images in background ...
    (microsoft.public.dotnet.framework.compactframework)
  • Implementing FcFs queue with J2SE 5.0
    ... J2SE 5.0 has a lot's of new classes considering multithreading. ... What is the best class to implement queue in FirstComesFirstServed model? ... Any sample code arapund? ...
    (comp.lang.java.programmer)