1.

Consider the methods used by processes P1 and P2 for accessing their critical sections. The initial values of shared Boolean variables S1 and S2 are randomly assigned,P1 While (S1 = = S2); Critical section S1 = S2;P2while (S1 = = S2);critical sectionS1 = S2;Which one of the following statements describes the properties achieved?

A. Mutual exclusion but not progress
B. Progress but not mutual exclusion
C. Neither mutual exclusion nor progress
D. Both mutual exclusion and progress
Answer» B. Progress but not mutual exclusion


Discussion

No Comment Found