Blocking, Lock-Free, and Wait-Free Progress

Compare progress guarantees under stalled threads and distinguish a system-wide completion argument from an individual step bound.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Some guarantees speak about the entire system
  2. Wait-free methods give individual guarantees

Some guarantees speak about the entire system

A lock-based queue can stop if its lock holder is suspended. A lock-free operation is designed so that continued operation steps ensure some operation makes progress, under the formal model, even if one participant is delayed. Showing that a failed conditional update reflects another participant’s success can support such an argument. It does not establish progress for the thread that keeps losing.

Wait-free methods give individual guarantees

A wait-free operation finishes within a bound on its own steps under the stated participation model. Helping schemes can let other threads finish an announced operation, but correctness must account for duplicate help and shared state. Memory reclamation can affect the guarantee of the complete implementation. Compare-and-swap supplies an update primitive. Linearizability concerns correctness of completed effects separately from their progress conditions.[1]

References

  1. Maurice Herlihy and Nir Shavit, The Art of Multiprocessor Programming ↩