Two processes, P_1 and P_2, need to access a critical section of code.…
GATE · 2007 · CS
Two processes, P_1 and P_2, need to access a critical section of code. Consider the following synchronization construct used by the processes: Here, wants1 and wants2 are shared variables, which are initialized to false. Which one of the following statements is TRUE about the above construct?
P1(i) | P2(j) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- 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
Attempted by 348 students.
Sign up free to check your answer
Sign up freeLoading lesson…