Modification order
A total ordering of all writes to a single memory location, observed consistently by all threads—a foundational concept of the memory model.
In a simple mental model, all changes to a variable happen in a strict sequence: first write, second write, third write. In reality, different threads may observe these writes in different orders. However, modification order states that there exists an underlying total order to which all threads must conform. This order is independent of happens-before relations. A thread might read a later write than the most recent write it previously observed—an effect called "causality violation" in weaker consistency models. Modification order is crucial for understanding which values are observable from a variable under various ordering guarantees.