Cache Coherence -- The Problem
•
Processors can modify shared locations
without other processors being aware of it
unless special hardware is added
P
1
reads a into its cache
P
3
reads a into its cache
P
1
changes a to 5 and
writes the result through to
main memory leaving P3
with stale data
P
3
reads a …
incoherent
P
1
4 5
P
2
P
3
4
4 5
Memory
a:
a: