A directory of Objective Type Questions covering all the Computer Science subjects. Here you can access and discuss Multiple choice questions and answers for various compitative exams and interviews.

Discussion Forum

Que. 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                                         P2
while (S1 = = S2);             while (S1 = = S2);
critical section                  critical section
S1 = S2;                              S1 = 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:Neither mutual exclusion nor progress
Confused About the Answer? Ask for Details Here
Know Explanation? Add it Here

Similar Questions: