compare-and-swap term
atomic 'set X to B only if currently A'
CPU instruction that reads + conditionally writes atomically. Foundation of lock-free data structures and optimistic concurrency. Returns whether the swap happened.
atomic 'set X to B only if currently A'
CPU instruction that reads + conditionally writes atomically. Foundation of lock-free data structures and optimistic concurrency. Returns whether the swap happened.