Mutual exclusion but not progress - Operating System
Q. Let P1 and P2 be the two processes and S1 and S2 be the two shared Boolean variables. The initial values of S1 and S2 are randomly assigned. For accessing the critical sections of P1 and P2 the methods used by them are given below:
Method used by P1
While ( S1 == S2 );
Critical section
S1 = S2;
Method used by P2
While ( S1! = S2 )
Critical section
S2 = not (S1);
Which statement / s describes that the properties are achieved?- Published on 27 Aug 15a. Progress but not mutual exclusion
b. Mutual exclusion but not progress
c. Both mutual exclusion and progress
d. Neither mutual exclusion nor progress
ANSWER: Mutual exclusion but not progress