Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started