































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
































Mem.
Initial state: P2 reads A; P3 reads A (note already a decision to make: who sends the value of A?)
A
A A
P2 and P3 have read line A; P4 has a write miss on an element of line A
Mem.
A’
A’ A’ A’
A write miss looks like a read miss (bring the old value of A in P4) followed by a write hit and a broadcast of the new value of A
Write-invalidate
P2 and P3 have read line A; P4 has a write miss on an element of line A
Mem.
Invalid lines
A
A A^ A’
A write miss looks like a read miss (bring the old value of A in P4) followed by a write hit and an invalidation
State Transitions for a Given Cache
Line
associated with the cache
result of other processor actions, e.g.,
Basic Write-invalidate Protocol (write-
back write-allocate caches)
those:
Basic 3 State Protocol: Transitions from
Bus Snooping
Inv.
Modified
Bus write Shared
Bus write (^) Bus read
Read miss from mem.
Write hit
Write miss
Read hit
Read/Write Hit
Bus read miss
Write hit
Read miss from cache
Read hit and bus read miss
Bus read miss
bus write miss
bus write miss
bus write miss
Proc. induced
Bus induced
Read miss from mem.
Write hit
Write miss
Read hit
Hit
Bus read miss
Write hit
Read miss from cache
Read hit and bus read miss
Bus read miss
bus write miss
bus write miss
bus write miss
Proc. induced
Bus induced
Both P2 and P will have A in state S
Read miss from mem.
Write hit
Write miss
Read hit
Hit
Bus read miss
Write hit
Read miss from cache
Read hit and bus read miss
Bus read miss
bus write miss
bus write miss
bus write miss
Proc. induced
Bus induced
P2 and P3 will have A in state I; P4 will be in state M