IT lexicon › Programming › Store barrier

Store barrier

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

A memory barrier that ensures all prior memory writes become visible before anything after the barrier starts, also called a release barrier.

Store barriers guarantee that all writes before the barrier are committed to main memory before anything after it executes. This is the counterpart to load barriers and is critical in producer-consumer patterns: the producer writes data, then a store barrier, then signals the consumer. The consumer reads the signal with a load barrier and knows the data is visible.

Implementation depends on the architecture: on modern x86, many store operations are already sequentially consistent, but ARM requires explicit instructions. Weak memory models like PowerPC often require explicit barriers.

← Back to the lexicon