Actually, there is an unofficial processor affinity API on Mac OS X,
but it is supplied only with the CHUD framework. I suppose as a
further barrier to using this API in code outside of Apple, the header
files for this API are only available with the standalone CHUD
installer. See:
http://lists.apple.com/archives/xcode-users/2005/May/msg00939.html
There is a blog posting that describes how to use this API here:
http://ridiculousfish.com/blog/archives/2007/02/17/barrier/
Hope that helps,
Brian
|