






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!







Shared Memory Cells
Step 1
Step 2
Step 3
Example 2 (complicating things)
p processor PRAM withn numbers (p ≤ n)
Doesx exist within then numbers?
P 0 containsx and finally P 0 has to know
Algorithm
Inform everyone whatx is
Every processor checks [n/p] numbers and
sets a flag
Check if any of the flags are set to 1
Example 2 (complicating things)
Inform everyone whatx is
log(p)
n/p
log(p)
1
n/p
log(p)
1
n/p
1
(common)
B units for each subsequent message