

MCQOPTIONS
Saved Bookmarks
1. |
Consider the methods used by processes P1 and P2 for accessing their critical sections whenever needed, as given below. The initial values of shared boolean variables S1 and S2 are randomly assigned.Method used by P1 :while(S1==S2);Critical sectionS1 = S2; Method used by P2 :while(S1!=S2);Critical sectionS2 = not(S1);Which of the following statements describes 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» E. | |