Memory ordering
Guarantees about the order in which reads and writes to memory become visible to other threads.
CPUs and compilers reorder instructions for performance, but wrong reordering can create race conditions. Memory ordering defines which reorderings are permitted. Different architectures provide different guarantees: x86 enforces total order, while ARM and PowerPC are weaker. Writing correct concurrent code requires understanding memory barriers and your platform's memory model.