Table of Contents

About

The happens-before relationship is simply a guarantee that memory writes by one specific statement are visible to another specific statement.

The results of a write by one thread are guaranteed to be visible to a read by another thread only if the write operation happens-before the read operation.

And so to avoid a memory consistency problem.

Solution