All Questions
Dealing With Contention hard

The ABA problem occurs in lock-free CAS algorithms when:

  1. A Threads deadlock.
  2. B Value A changes to B, then back to A. A thread reading A thinks nothing changed, but the underlying state (e.g., pointer to a freed node) has changed, leading to corruption.
  3. C Memory leaks.
  4. D Stack overflow.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions