10.5: New thread affinity API for OS X developers

This tip 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 specific thread should run on a specific processor core was not available.

With Leopard, Apple has released a Thread Affinity API to

supply thread affinity hints to the kernel scheduler for improving documents locality in caches, among other uses. While it is still not a full implementation like sched_setaffinity() is in Linux, it should assemble parallel programming a little bit more effective and portable.

Details on the API can be found …

Original post by Mike Schramm

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
Related Articles
  • Warner goes Blu-ray exclusive (Darren Murph/Engadget)
  • Apple Drops iPhone 2.0 NDA, Developers Rejoice
  • Monster Acquires Affinity Labs, Developer Of Vertical Career Sites, For $61 Million (Joseph Weisenthal/paidContent.org)
  • Facebook Charges Developers for Seal of Approval
  • DST: Innovative Options for Securing Your Company’s Data
  • Google Releases Android SDK, Version 0.9
  • New Year. New Rules.Facebook Developers News Feed
  • Yahoo BOSS Opens Search Technology to Developers
  • Google Store Will Help Android Developers Earn Cash
  • Google Releases Unlocked Android G1 for Developers
  • No comments yet. Be the first.

    Leave a reply