All challenges
Multiple ChoiceHard 45s

Lock-Free Stack ABA Hazard

The classic ABA problem in a lock-free stack occurs because:
Options
  1. 1CAS succeeds even though the memory was freed and reused, so the stack state mismatches
  2. 2Push operations are not atomic, so a failed CAS leaves a half-linked node on the list
  3. 3The stack overflows once more than a fixed number of nodes are pushed concurrently
  4. 4Loads of the 64-bit head pointer are torn, so a reader sees a partial address

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle