3

In Linux machines, there is a command called taskset, which can be used to do the processor affinity.

In mac(from mavericks) are there any commands to the same job like taskset?

Else how one can achieve processor affinity on mac?

Thanks in advance.

1 Answer 1

2

Apple provides a Thread Affinity API, but nothing like taskset.

OS X does not export interfaces that identify processors or control thread placement—explicit thread to processor binding is not supported. Instead, the kernel manages all thread placement. Applications expect that the scheduler will, under most circumstances, run its threads using a good processor placement with respect to cache affinity.

1
  • 2
    Thanks. Any examples of how to use them?
    – Ant's
    Jan 11, 2015 at 12:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .