Work-Stealing for Optimal Load Balancing

TBB's high performance stems from its dynamic work-stealing task scheduler, which allows idle processors to 'steal' tasks from busy ones, ensuring efficient CPU core utilization and scalability in varied workloads.

The top 3

  1. Work-Stealing's Cilk Origins: Pioneers of Parallelism: The work-stealing algorithm was first formalized and implemented in the Cilk language, developed by Robert D. Blumofe and Charles E. Leiserson at MIT in the mid-1990s, offering a theoretically efficient scheduling strategy for dynamic multithreading.
  2. Work-Stealing vs. Work-Sharing: Efficiency Showdown: Work-stealing contrasts with work-sharing, where busy processors push tasks to idle ones; instead, work-stealing has idle processors actively 'stealing' tasks from busy ones, reducing communication overhead and improving scalability, especially for unpredictable workloads.
  3. Decentralized Deques: Work-Stealing's Core Advantage: Work-stealing schedulers commonly use per-processor double-ended queues (deques): workers push/pop tasks locally from one end (stack-like for new tasks), while idle 'thieves' steal older, larger tasks from the opposite end of other workers' deques (queue-like), minimizing contention.

Sources

Open the full topic