Concurrency bugs emerge when two or more threads — or clients, or cores — touch shared state without proper synchronization. Every lesson here isolates one interleaving that breaks an assumption.