Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the simultaneous execution of the following three programs on three processors: Processor 1 a. A:=1 b. Print B, C Processor 2 c. B:=1 d.

Consider the simultaneous execution of the following three programs on three processors:

Processor 1 a. A:=1 b. Print B, C

Processor 2 c. B:=1 d. Print A, C

Processor 3 e. C:=1 f. Print A,B

Assume A, B, C, are shared writable variables in memory (initially A=B=C=0 )

Assume atomic memory access operations. Answer the following with reasoning or supported by computer simulation results:

a) List the 90 execution interleaving orders of the six instructions {a,b,c,d,e,f} which will preserve the individual program orders. The corresponding output patterns (6-tuples) should be listed accordingly.

b) Can all 6-tuple combinations be generated out of the 720 non-program-order interleavings? Justify the answer with reasoning and examples.

c) We have assumed atomic memory access in this exercise. Explain how the output 011001 for the above is not possible in an atomic memory multiprocessor system if individual orders are preserved.

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

Database Processing Fundamentals Design And Implementation

Authors: David M. Kroenke

5th Edition

B000CSIH5A, 978-0023668814

More Books

Students also viewed these Databases questions