IT lexicon › Programming › Weak memory model

Weak memory model

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

A memory model that permits reordering of read and write operations to enable better performance, but with constraining rules to maintain correctness.

A weak memory model like ARM or PowerPC allows the CPU or compiler to reorder instructions in many ways, as long as it doesn't violate explicit program dependencies. This enables greater parallelism and cache utilization than a strictly sequential model. The cost is that programmers must be explicit about ordering when it matters—through memory barriers or synchronization primitives.

Most modern processors use weak memory models for performance. The Java Memory Model and C++11 are designed to work well on both weak and strong models.

← Back to the lexicon