Multithreaded application on a MultiCPU/MultiCore machine

  • Thread starter Thread starter Giulio Petrucci
  • Start date Start date
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
 
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.
 
Back
Top