CPU Affinity on the Mac 10.6+ and Xcode 4+
Not sure if this is the right place to post this question but here it is anyway.
I remember back in the days with Xcode 3.x, there was a prefPane that once installed, it would allow you to turn on and off of your CPU cores. This was removed in Xcode 4. I was just wondering if there are any utilities in OS X >= 10.6 that will accomplish a similar feat or at least be ab开发者_如何学Pythonle to just type a command and assign a process to a CPU core?
I believe the processor pane is still there but needs to be installed.
it should be at /Developer/Extras/PreferencePanes/
Alternatively you can set the processor control in NVRAM but this requires a reboot
as follows
$ sudo nvram boot-args="cpus=1"
more details at the docs link
A third option may be the CPUPalete app. If this is on your system you can find it
/Library/Application Support/HWPrefs/CPUPalette.app
Apple's docs are here Apple CPU control
精彩评论