Home All Groups Group Topic Archive Search About

Multithreaded application on a MultiCPU/MultiCore machine

Author
24 Oct 2007 8:23 AM
Giulio Petrucci
Hi there,

what happens if I write a multi-threaded application and run it on a
multi-processor or multi-core machine? I mean: are all the threads
executed on the same core/CPU the same? Or can they be executed on
different CPUs/cores? Can you link me any documentation abou this issue?

Thanks in advance and have a nice day,
Giulio - Italia

--
OnAir:

Author
24 Oct 2007 8:32 AM
Jon Skeet [C# MVP]
Giulio Petrucci <faken***@fakedomain.com> wrote:
> what happens if I write a multi-threaded application and run it on a
> multi-processor or multi-core machine? I mean: are all the threads
> executed on the same core/CPU the same? Or can they be executed on
> different CPUs/cores? Can you link me any documentation abou this issue?

Yes, they can execute on different CPUs and cores. There'd be a lot
less point in writing threaded applications if they couldn't make use
of multi-core machines.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet   Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too

AddThis Social Bookmark Button