The CAS Operation: Atomic Compare-and-Swap - Compare-and-Swap: Foundation of Lock-Free Concurrency | OneNoughtOne