real people don't write "compare-and-swap" ... or "lo-and-behold" for that matter.
edit. Clearly the joke about "lo-and-behold" didn't land well with the bots...
Compare-and-swap is a hardware instruction, and beyond that a desirable pattern for dealing with concurrent writes.
CMPXCHG
I do.
For compare-and-swap I have even got a lock less queue that I implemented with it.
People who grew up with assembly language or locking primitives are fairly likely to use compare-and-swap because it's literally the commonly understood term for it.
https://en.wikipedia.org/wiki/Compare-and-swap