On Nov 7, 7:20 pm, Peter Ritchie [C# MVP] <PRS...@newsgroups.nospam>
wrote:
You can PInvoke some Win32 functions to get that information; but why would
you want to?
--
Browsehttp://connect.microsoft.com/VisualStudio/feedback/and vote.http://www.peterRitchie.com/blog/
Microsoft MVP, Visual Developer - Visual C#
"aruna...@gmail.com" wrote:
Hi,
In a multi-threaded app on adualcoremachine, is it possible to
know on which cpu a particular thread is currently executing on?
thanks,
Arun- Hide quoted text -
- Show quoted text -
I am comparing the performance of my code ( multi threaded, cpu
intensive) in a single core and dual-core systems and only see a
performance gain of around 15%. This led me to wonder if the runtime
was actually using the dual core. Hence I was wondering if there was
any way I could find this out.
Alternatively, is there any way to get the usage statistics of both
the cores within my program?
thanks,
Arun