Time management is very much important in IIT JAM. The eduncle test series for IIT JAM Mathematical Statistics helped me a lot in this portion. I am very thankful to the test series I bought from eduncle.
Nilanjan Bhowmick AIR 3, CSIR NET (Earth Science)
Aparna 1
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 is No Mutual Exclusion here. As both processes can enter in the critical section at the same time, mutual exclusion is not satisfied. Also deadlock is prevented because mutual exclusion is one of the necessary condition for deadlock to happen. Hence correct option is A i.e. proposed solution guarantees that there is no deadlock but mutual exclusion.