Computer architecture. Can you please answer both questions. Thank you 6.7 Consi
ID: 3917516 • Letter: C
Question
Computer architecture. Can you please answer both questions. Thank you
6.7 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 0. Core 1: x-2; Core 2: y - 2; Core 3: W-x y 1; Core 4: Z-X + y; 6.7.1 [10] What are all the possible resulting values of w, x, y, and z? For each possible outcome, explain how we might arrive at those values. You will need to examine all possible interleavings of instructions. 6.7.2 [5] How could you make the execution more deterministic so that only one set of values is possible?Explanation / Answer
Answer (6.7.1) There are 24 possible combinations and some of the combinations have the same values of x,y,w, and z. Table 1 represents all 24 combinations and table 2 represents the values of all 4 according to the combinations in table 1.
Values of all possible combinations (Table 2)
Answer (6.7.2) You can make the execution more deterministic by using specific bus architecture so that it follows a sequence and increases determinism. You can also prioritize the cores hence reducing concurrency which will increase the determinism. But there is no way, in my knowledge, that can be used to make it fully deterministic as if that is achieved, then the Symmetric Multicore Processor (SMP) will turn into Asymmetric Multicore Processor (AMP).
I hope you have got all your questions answered.
Thank you
All Possible combinations (Table 1) x y w z x y z w x w y z x w z y x z y w x z w y y x w z y x z w y w x z y w z x y z x w y z w x w x y z w x z y w y x z w y z x w z x y w z y x z x y w z x w y z y x w z y w x z w x y z w y xRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.