threading choice on single/multiple CPU
From: Tommy (anonymous_at_discussions.microsoft.com)
Date: 07/14/04
- Next message: Nick: "Using Properties To pass fields between Dialogs"
- Previous message: Jay B. Harlow [MVP - Outlook]: "Re: C# BitVector32 for DCB Struct - any help?"
- In reply to: Tommy: "threading choice on single/multiple CPU"
- Next in thread: George Neuner: "Re: threading choice on single/multiple CPU"
- Reply: George Neuner: "Re: threading choice on single/multiple CPU"
- Messages sorted by: [ date ] [ thread ]
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.
>
>
>.
>
- Next message: Nick: "Using Properties To pass fields between Dialogs"
- Previous message: Jay B. Harlow [MVP - Outlook]: "Re: C# BitVector32 for DCB Struct - any help?"
- In reply to: Tommy: "threading choice on single/multiple CPU"
- Next in thread: George Neuner: "Re: threading choice on single/multiple CPU"
- Reply: George Neuner: "Re: threading choice on single/multiple CPU"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|