Multicore & Synchronization
Which correctly lists the four states of the MESI cache coherence protocol?
- AMemory, Execute, Store, Index
- BModified, Exclusive, Shared, Invalid
- CMiss, Evict, Swap, Idle
Show answer and explanation
Answer: B. Modified, Exclusive, Shared, Invalid
In MESI, each cache line is in one of four states: Modified (changed and held only by this core), Exclusive (unchanged and held only by this core), Shared (several cores hold the same contents) or Invalid. The state changes whenever the core reads or writes, or learns of other cores' reads and writes, which prevents copies of the same address from disagreeing.
- A. These are not cache line states.
- B. Correct. Every line is in one of these four states.
- C. These are not cache line states.