Software Engineering KB

Home

❯

02 Programming Languages and Paradigms

❯

04 Concurrency

❯

01 Concept

❯

ABA Problem

ABA Problem

Feb 10, 20261 min read

  • concurrency
  • lock-free
  • aba

ABA Problem

← Back to Lock-Free & Wait-Free Programming

A subtle bug in CAS-based algorithms where a value changes from A to B and back to A. The CAS operation sees the original value and succeeds, but the underlying state may have changed significantly. Solutions include tagged pointers (version counters) and hazard pointers.

Key Properties

  • Value Changes A to B to A
  • CAS Doesn’t Detect Intermediate Change

concurrency lock-free aba


Graph View

  • ABA Problem
  • Key Properties

Backlinks

  • Lock-Free & Wait-Free Programming
  • CAS Doesn't Detect Intermediate Change
  • Value Changes A to B to A

Created with Quartz v4.5.2 © 2026

  • GitHub