π Question
#151
Two processes, P1 and P2, need to access a critical section of code. Consider the following synchronization construct used by the processes. Process P1 : while(true) { w1 = true; while(w2 == true); Critical section w1 = false; } Remainder Section Process P2 : while(true) { w2 = true; while(w1 == true); Critical section w2 = false; } Remainder Section
β
Correct Answer
A. It does not ensure mutual exclusion
β¨οΈ Press
A
B
C
D
to select