Multithreaded application on a MultiCPU/MultiCore machine

G

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
 
J

Jon Skeet [C# MVP]

Giulio Petrucci said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top