Filter löschen
Filter löschen

do multiple instances on Apple OS X use different CPU cores?

5 Ansichten (letzte 30 Tage)
Michael Levin
Michael Levin am 23 Feb. 2017
Beantwortet: Faiz Gouri am 27 Feb. 2017
I have an Apple Mac Pro with 6 cores. I finally figured out how to run 2 instances of Matlab (the right-click "open additional instances" wasn't working but I managed to run 2 copies from Terminal). Question: do the two instances automatically use different CPU cores? That is, running 2 instances simultaneously on a 6-core machine is likely to be faster than one at a time (sequentially), or do they just end up sharing 1 processor and not giving me any speed advantage?
  1 Kommentar
Guillaume
Guillaume am 23 Feb. 2017
I'm not familiar with OS X but generally it's the OS that controls allocation of program to virtual or physical cores, not the program itself.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Faiz Gouri
Faiz Gouri am 27 Feb. 2017
It is completely bound by OS scheduling algorithm. Running multiple MATLAB instances is like running independent processes You can try set processor affinity if you want to run Matlab on different cores, but that might not necessarily result in improved performance. Moreover, OSX does not provide process affinity. You can do Thread Affinity though, which is not useful in your use case.

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by