IT lexicon › Programming › Happens-after

Happens-after

Programming På svenska → Updated: 2026-11-15

The reverse direction of the happens-before relation in a memory model.

If event A happens-before B, then from B's perspective, A happens-after. It's the same relation, but expressed backwards — no new information is added, just a different angle on causality. Happens-after is sometimes clearer when reasoning about what effects a later operation is guaranteed to observe.

In practice, specifications focus on happens-before to avoid confusion, but the guarantees are symmetric: an operation that happens-after a write is guaranteed to see its effects. Both directions are equivalent; language standards simply chose the forward direction as canonical.

← Back to the lexicon