printable version

Final Review B

[1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

Problem Rfb.1.

Suppose two cores execute the following threads having access to the shared-memory variables x, y, and z.

initially, x is 0, y is 1, z is 2
Thread AThread B
x = 10;
y = 11;
z = 12;
z = 22;
y = 21;
x = 20;

Assuming our cache is coherent, which of the following are possible final values for the shared variables?

xyz
a.101112
b.101122
c.102112
d.102122
e.201112
f.201122
g.202112
h.202122