What is ABA problem?

The problem that when a value changes from A to B and back to A, a CAS comparing only values fails to notice and succeeds. Lock-free data structures must guard against it.

Field: Multicore & Synchronization

ABA problem in the explanations

Questions that mention ABA problem (2)

  1. Which describes the ABA problem that affects lock-free data structures built with CAS?
  2. What property does a lock-free algorithm have?

Related terms

Load-reserved/store-conditional (LR/SC) Lock-free algorithm Interrupt Acquire-release semantics Atomic instruction Barrier synchronization Bus snooping Compare-and-swap Condition variable Critical section

Back to the glossary