Question: Given the code of two processes that share the variable b whose initial value is 2 , Process A: c = b - 1 ;

Given the code of two processes that share the variable b whose initial value is 2,
Process A:
c = b-1;
b =2* c
Process B:
d =2* b;
b = d -1;
how many distinct values b can have at the end of execution
Select one:
a.3
b.2
c.1
d.4

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!