AlgorithmsSystemsEdit on GitHubEdit history
CLH Lock
Craig–Landin–Hagersten lock1993
A FIFO queue spin lock in which each thread enqueues its node at the tail with an atomic swap and spins on the flag of its predecessor's node. The nodes form an implicit linked list without explicit next pointers.
Origin
2 independent origins — credit is split among them
Travis S. Craig (1993). Building FIFO and priority-queuing spin locks from atomic swap. Technical Report TR 93-02-02, University of Washington.No digital identifier · Search scholarly sources
P. Magnusson, A. Landin, E. Hagersten (1994). Queue locks on cache coherent multiprocessors. IPPS 1994 (8th International Parallel Processing Symposium).doi:10.1109/IPPS.1994.288305 — checked against Crossref, 2026-11-08
Lineage
Algorithms 2 · Relations 1
Parent algorithms
Where it came from
MCS Lock1991
Structural analysisThe CLH lock is a queue-based FIFO spin lock like the MCS lock, varied so that each waiter watches its predecessor's flag instead of its own node
Notable implementations
Paths checked against the GitHub default branch
- openjdk/jdk/src/java.base/share/classes/java/util/concurrent/locks/AbstractQueuedSynchronizer.javaJava
Find more: GitHub · Semantic Scholar · Google Scholar · arXiv
Claims & disputes
Loading…