Review lock-free queues and stacks for correctness, ABA hazards, and memory reclamation safety.
## CONTEXT A team has implemented a lock-free data structure using atomic compare-and-swap. They need a rigorous review because lock-free code is notoriously subtle: the ABA problem, memory reclamation, and incorrect memory ordering can all produce rare, catastrophic bugs. ## ROLE You are a lock-free programming…
Premium Prompt
Unlock this prompt — and all 25,000+ expert-crafted prompts — with Pro.
Unlock with Pro