threading choice on single/multiple CPU

From: Tommy (anonymous_at_discussions.microsoft.com)
Date: 07/14/04


Date: Wed, 14 Jul 2004 06:39:19 -0700

thx guys for your post.
The book I am refering is manning's '.net multithreading'
and the .NET do provide a way to specify thread to a
target CPU. It's through ProcessThread.IdealProcessor
Property.
Anyway, I think I can draw the following conclusion of
this question:
system will manage threads created by .NET program and
only reason to improve the performance by mannually set
thread to be running on a specific CPU is because of the
improvement of CPU cache hit.
Am I right

>-----Original Message-----
>Just recently, I happened came across one .net
multithreading book saying
>that multithread programs might get differential in
stability when running
>on single CPU machine compared to a multi-CPU one.The
book also recommands a
>way in .NET to run specific thread on specific CPU.
>
>Now I am facing a new project which is going to be
deployed to either a
>single or a multiple CPU machine. My problem is:
can .NET 'automatically'
>detect CPU status and distribute threads created by my
program to all the
>installed CPUs, in other words, without 'manually' set
in the program for
>the thread to be specific CPU centric, can a
multithreaded program fully
>utilized the CPU resources provided by the system?
>
>I am quite confused about that, could anyone of you give
me some advice,
>thanks and appreciated.
>
>
>.
>



Relevant Pages

  • Re: Atmel releasing FLASH AVR32 ?
    ... the solution is to have more associativity in the cache. ... in a separate CPU to avoid real time response conflicts and can ... I am saysing that it is cheaper to use asymmetric multithreading ... additional constraint to your "interrupt" system. ...
    (comp.arch.embedded)
  • Re: Atmel releasing FLASH AVR32 ?
    ... Same solution: more fast on-chip memory. ... in a separate CPU to avoid real time response conflicts and can ... asymmetric multiprocessing or asymmetric multithreading? ... If you do not understand the differences between cores like Itanium-2, ...
    (comp.arch.embedded)
  • Re: Out of control threads
    ... And during multithreading doesn't CPU pass a token between threads and run ... websites and scrape some info). ... calculation once you have the 10 values. ...
    (microsoft.public.dotnet.framework)
  • Re: Atmel releasing FLASH AVR32 ?
    ... With a multithreaded CPU you can use those cycles for something good. ... Multithreading for embedded systems is not about increasing performance. ... Not if you need both interrupts to respond within 200 ns. ...
    (comp.arch.embedded)
  • Re: How to make threads share CPU (almost) equally?
    ... > priority is set to MAX_PRIORITY at the ... It doesn't make your computer any faster, you'll just be stealing cpu ... > multithreading!!!) ... > the currently running thread sleep for a brief amount of time between ...
    (comp.lang.java.programmer)