Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

memory ordering

The rule for which other memory changes a thread is guaranteed to see around an atomic operation.

Relaxed guarantees only the atomic itself; Acquire/Release pair up to publish data written before a store; SeqCst adds one global order of all SeqCst operations.

Examples

  • ready.store(true, Ordering::Release) paired with a ready.load(Ordering::Acquire) that sees true guarantees the reader also sees what was written before the store.

Read the full section →