How do you set processor affinity in Snow Leopard on a MacBook Pro?I know in Windows you could just switch it in Task Manager.
|
migrated from stackoverflow.com Jun 6 '10 at 6:38
|
http://developer.apple.com/mac/library/releasenotes/Performance/RN-AffinityAPI/
|
|||
|
|
|
Until now, the XNU (1504.3.12) scheduler doesn't implement processor affinity for processes nor threads. So MacOSX doesn't provide any means to do that. |
|||
|
|
|
From http://images.apple.com/macosx/docs/OSX_for_UNIX_Users_TB_July2011.pdf • Efficient kernel threads. Each POSIX thread is queued onto a particular CPU, improving processor affinity and scalability while reducing lock contention. Threads conform to POSIX (1c), including support for cancellation and shared mutexes. It looks like ad to me, my iMac running Lion looks to respect that most of the time, but it do not 'pin'a process to a core. I could not find any API to control process affinity for darwin anyway. |
|||
|
|