GATEverse
← GATE CSE 2010

Q23

MCQ1 mark, −0.33

Consider the methods used by processes P1P1 and P2P2 for accessing their critical sections whenever needed, as given below. The initial values of shared boolean variables S1S1 and S2S2 are randomly assigned.

Method used by P1Method used by P2while (S1 == S2);while (S1 != S2);Critical SectionCritical SectionS1 = S2;S2 = not(S1);\begin{array}{|l|l|}\hline \textbf{Method used by P1} & \textbf{Method used by P2} \\ \hline \text{while (S1 == S2);} & \text{while (S1 != S2);} \\ \text{Critical Section} & \text{Critical Section} \\ \text{S1 = S2;} & \text{S2 = not(S1);} \\\hline \end{array}

Which one of the following statements describes the properties achieved?

Sign in to save attempts.

Loading…