Consider the following concurrent program. Initially a, b and c are 0. a:=1 ; print(b) ; print(c); b:=1 ; print(a) ; print(c); C:=1 ; print(a) ; print (b); P1: Р2: Р3: Which of the outputs are...


Consider the following concurrent program.<br>Initially a,<br>b and c are 0.<br>a:=1 ; print(b) ; print(c);<br>b:=1 ; print(a) ; print(c);<br>C:=1 ; print(a) ; print (b);<br>P1:<br>Р2:<br>Р3:<br>Which of the outputs are sequentially consistent. Justify your answer.<br>(a) P1 outputs 11, P2 outputs 01 and P3 outputs 11.<br>(b) P1 outputs 00, P2 outputs 11 and P3 outputs 01.<br>

Extracted text: Consider the following concurrent program. Initially a, b and c are 0. a:=1 ; print(b) ; print(c); b:=1 ; print(a) ; print(c); C:=1 ; print(a) ; print (b); P1: Р2: Р3: Which of the outputs are sequentially consistent. Justify your answer. (a) P1 outputs 11, P2 outputs 01 and P3 outputs 11. (b) P1 outputs 00, P2 outputs 11 and P3 outputs 01.

Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here