Ques. Iwo Process X &y necd to access a CS. Consider the following - Processy Process X while (tue) Var Q = true. var P= true; while (Var P = = true) while (Var Q = = true) CS CS Var P = false Var Q = false Here varP and varQ are shared variables and both are initialized to false. Which one of the (A) Proposed solution guarantee that there is no deadlock but no mutual exclusion. (B) It guarantees mutual exclusion but fails to prevent deadlock (C) guarantees both deadlock and mutual exclusion.
When both processes try to enter critical section simultaneously , both are allowed to do so since both shared variables var P and var Q are true.
So it is very clear that there i...