Answered step by step
Verified Expert Solution
Link Copied!

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)

image text in transcribed

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 11 The Database For Big Data And Analytics

Authors: Cristian Molaro, Surekha Parekh, Terry Purcell, Julian Stuhler

1st Edition

1583473858, 978-1583473856

More Books

Students also viewed these Databases questions

Question

List the possible sources of information about an organisation.

Answered: 1 week ago