Back to the 2016 paper

Module 4: Memory Organization

20162m

What do you mean by cache coherence problem?

Worked SolutionAI Assisted

Cache Coherence Problem:

Occurs in multiprocessor / multi-cache systems where multiple caches may hold copies of the same memory block.

If one processor (P1) writes to its cached copy of block X, other caches holding X become stale/inconsistent with main memory and with each other. Subsequent reads by other processors would get old data.

  • Problem: Ensuring all caches and main memory see a consistent view of shared data after writes.
  • Solutions: Snooping protocols (write-invalidate, write-update / write-broadcast), directory-based protocols, MESI state machine.

Without coherence, program correctness is violated.

Similar questions

Free AppAndroid App

Coursify Android App

Generate AI courses, take quick quizzes between classes, and master complex engineering concepts on the go.