IT lexicon › Hardware › MESI protocol

MESI protocol

Hardware På svenska → Updated: 2026-05-29

The classic cache-coherence protocol, named after the four states each cache line can have: Modified, Exclusive, Shared, Invalid. By tracking these states the system knows when a copy must be written back or invalidated.

The states: Modified (this core has changed the line, no one else has it, memory is stale), Exclusive (only this core has the line, unchanged), Shared (several cores have the same unchanged copy), Invalid (the copy is no good). When a core wants to write, other copies must go to Invalid; if it wants to read something another holds Modified, that must be written back first. Variants: MOESI (adds Owned, AMD) and MESIF (Forward, Intel) optimize sharing between cores. This is the machinery behind cache coherence. The "false sharing" problem arises precisely because MESI works at cache-line granularity, not variable granularity. Foundational knowledge in computer architecture. Related to cache coherence.

← Back to the lexicon