1.

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 sectionw1 = false;}Remainder Section Process P2 :while(true){w2 = true;while(w1 == true);Critical sectionw2 = false;}Here, w1 and w2 are shared variables, which are initialized to false. Which one of the following statements is TRUE about the above construct?

A. It does not ensure mutual exclusion
B. It does not ensure bounded waiting
C. It requires that processes enter the critical section in strict alternation
D. It does not prevent deadlocks, but ensures mutual exclusion
Answer» E.


Discussion

No Comment Found