Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.5: New thread affinity API for OS X developers System 10.5
This hint is for all those OS X developers out there. I've been bothered for a while that OS X didn't export thread affinity scheduling to user-space. That is, the functionality for a programmer to tell the system that a particular thread should run on a particular processor core was not available.

With Leopard, Apple has released a Thread Affinity API to provide thread affinity hints to the kernel scheduler for improving data locality in caches, among other uses. While it is still not a full implementation like sched_setaffinity() is in Linux, it should make parallel programming a little bit more effective and portable.

Details on the API can be found here.

[robg adds: Clearly outside the realm of my skill set, but perhaps useful to a few of our readers...]
  • Currently 3.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)

10.5: New thread affinity API for OS X developers | 0 comments | Create New Account
Click here to return to the '10.5: New thread affinity API for OS X developers' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.