Question: Problem #6 (a) Explain the difference between coherence and consistency. Be specific to get full credit. (b) What does it mean for a multiprocessor to

Problem #6 (a) Explain the difference between coherence and consistency. Be specific to get full credit. (b) What does it mean for a multiprocessor to be sequentially consistent? Why is this desirable requirement for a multiprocessor? List the conditions for sequential consistency. Why do we need synchronization? What is the key hardware capability needed to implement synchronization mechanism? (d) Consider the following portions of two different programs running at the same time on two processors in a symmetric multiprocessor. Assume before this code is run, both X and Y are 0. Processor #1: Processor #2: X=X+2; Y=X+2; Y=X+Y; What are the possible resulting values of X and Y, assuming that the code is implemented using load-store architecture? For each possible outcome, explain how X and Y might obtain those values. How can we make the computation consistent for each run of the program? Show all details to get full credit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
