OS Concepts · Chapter 6
Two processes increment and decrement a shared counter with no synchronization at all — watch an update get lost.
Both processes read the counter into a private register, modify it, then write it back. If their reads/writes interleave badly, one update silently disappears.