Question: / / 4 marks ( 3 + 1 marks ) Note - For part b , you do not need to show the code, just
marks marks
Note For part b you do not need to show the code, just answer qualitatively.
Consider the following portions of two different programs running at the same time on four processors in a symmetric
multicore processor SMP Assume that before this code is run, both x and y are
Core :x ;
Core :y ;
Core : w x y ;
Core : z x y;
What are all the possible resulting values of
wxy and z For each possible outcome, explain how we might arrive at those values. You will need to examine all possible
interleavings of instructions.
How could you make the execution more deterministic so that only one set of values is possible?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
