Local Task Queues and Work Stealing

Follow a worker that consumes local work and an idle worker that steals a pending task, then state the assumptions behind the speedup bound.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Keep the common scheduling path local
  2. Separate the theorem’s costs from machine overhead

Keep the common scheduling path local

A work-stealing scheduler gives each worker a deque of ready tasks. A worker normally pushes and pops its own work at one end, while an idle worker chooses a victim and attempts to steal at the other. Keeping recent tasks local can preserve locality. Taking an older pending task can also expose a larger subtree of work than moving very fine-grained work repeatedly.

Separate the theorem’s costs from machine overhead

For fully strict fork–join computations, randomized work stealing has a classical expected time bound of \(O(W/P+S)\) in the analyzed model. General tasks that block on unrelated resources or spawn excessive tiny work can incur different costs. Compare work and span with actual steal attempts and transfer overhead. Partitioning and load balance evaluates whether dynamic scheduling is the right response to skew.[1]

References

  1. Robert D. Blumofe and Charles E. Leiserson, Scheduling Multithreaded Computations by Work Stealing ↩