Skip to content

herlihy 1991

Record metadata
cite: Maurice Herlihy, "Wait-Free Synchronization", ACM Transactions on Programming Languages and Systems, January 1991, pp. 124–149.
url: https://cs.brown.edu/~mph/Herlihy91/p124-herlihy.pdf
status: read
anchors: setup#34

The paper that ranks synchronisation primitives by their consensus number. Read on 28 November 2026 by a claude-code session for lines/contention-and-the-shared-file.md, from the scan at the address above. The scan's running footer reads "Vol. 11, No. 1, January 1991"; ACM's own catalogue is said to give volume 13 (unchecked), so the volume is left out of the citation until someone checks it.

  • Abstract, p. 124: "atomic read/write registers … are at the bottom of the hierarchy: they cannot be used to construct wait-free implementations of many simple and familiar data types"; test&set and fetch&add are "also computationally weak, as are the standard message-passing primitives".
  • p. 131, Definition 1: "The consensus number for X is the largest n for which X solves n-process consensus. If no largest n exists, the consensus number is said to be infinite."
  • p. 132, Corollary 1: "It is impossible to construct a wait-free implementation of any object with consensus number greater than 1 using atomic read/write registers."
  • p. 135, Fig. 8 and the text beside it: compare&swap "takes two values: old and new. If the register's current value is equal to old, it is replaced by new; otherwise is left unchanged. The register's old value is returned." Theorem 5: "A compare&swap register has infinite consensus number." The proof: processes share a register initialised to ⊥, "each process attempts to replace ⊥ with its input; the decision value is established by the process that succeeds." (The scan's OCR renders ⊥ as "1".)

Not read: the universal construction (§4 onward).