Loading page…
A hardware-guaranteed indivisible memory operation such as compare-and-swap, used to build locks and lock-free structures.
CAS loops implement everything from spinlocks to crossbeam's lock-free queues; the ABA problem is the classic pitfall.