</>EmbeddedInterview

What is compare-and-swap (CAS)?

MediumOperating System Concepts

An atomic operation updates a value only if its current value matches an expected value.