














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!















Program to find the minimum of a large set of input data.
processors as are available.
Example Speedup Graph
Speedup over a single processor
Num of Processors
Ideal Speedup
Observed Speedup
2 parallel programming models
Latency = sender overhead + transport latency + receiver overhead
variable
Memory Coherence, continued
CPU 0 CPU 1
Loc X: val A (^) Cache Loc X: val A Cache
X A (^) Memory
Essential Question: What happens when CPU 0 writes value B to memory location X?
One solution : snooping caches
CPU CPU
Mem
Cache Cache
cache cache
snoop tags
snoop tags
The Illinois Protocol
M E S I^ Tag
The tag for each cache block now contains 4 bits that specify whether the block is m odified, e xclusively owned, s hared, or i nvalid.
Illinois Protocol
Invalid or no tag match
Modified Shared
Read, supplied by memory
Write, but invalidate others
Read, supplied by another CPU
Write, but invalidate others
Write
Exclusive
Read
Read
Read or Write