IT lexicon › Programming › Reads-from

Reads-from

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

A relation in the memory model that specifies which write a particular read operation actually obtained its value from.

To predict what a multithreaded program will do, you must know which values reads will observe. The reads-from function answers this: for every read operation, it specifies which write the value came from. Together with modification order and happens-before, reads-from forms the basis for reasoning about observable behavior. Under sequential consistency it is straightforward, but weaker models permit the same read to potentially observe multiple different values depending on processor and compiler reordering.

← Back to the lexicon