multi core question

Discussion in 'macOS' started by doox00, May 10, 2009.

  1. doox00 macrumors regular

    May 10, 2006
    How do you specify which core a program runs off of. If wanted to specify certain apps to run on a particular core.

  2. Jethryn Freyman macrumors 68020

    Jethryn Freyman

    Aug 9, 2007
    I don't think you can without really messing around with the application code or the system code.

    I'm sure it can be done, though.
  3. melchior macrumors 65816


    Nov 17, 2002
    what you are talking about is called setting cpu affinity. in linux you use the tool 'taskset' which makes things very easy, there are a few freebsd equivalents that claim compatibility with open-darwin. but looking at other responses it looks like they provide thread or process affinity.

    if you search for 'os x cpu affinity' you will find lots of hits, but not many promising leads i am afraid.

    there are api calls for this too, if you wanted to write the thing yourself.

    but try taskset and cpuset, they're your best bet.

Share This Page