Question: Q3 (a) Differentiate between distributed memory and distributed-shared memory. (5 marks) (b) Consistency definitions provide rules about loads and stores (or memory reads and writes)

 Q3 (a) Differentiate between distributed memory and distributed-shared memory. (5 marks)

(b) Consistency definitions provide rules about loads and stores (or memory reads

Q3 (a) Differentiate between distributed memory and distributed-shared memory. (5 marks) (b) Consistency definitions provide rules about loads and stores (or memory reads and writes) and how they act upon memory. Based on Table Q3(b), write the sequence of execution for S1, L1, S2, L2 so that the values of rl and r2 are as follows: i) (r1, r2) = (0, NEW) ii) (rl, r2) = (NEW, 0) iii) (r1, r2) = (NEW, NEW) Core C1 S1: x - NEW; L1: rl - y Core C2 S2: y - NEW L2: r2 - x; Comments Initially, x-0&y-07 Table Q3(b) (8 marks) Given the program and diagram as shown at Figure Q3(c). (i) Analyse whether the x and y loop can be executed in parallel by giving a reason on each answer. (5 marks) If any of the answer cannot be executed in parallel, suggest the new code which can produced parallel execution. (2 marks) (iii) Give a reason on the modification. (3 marks) for (x=0; x

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!