Suppose P, Q and R are co-operating processes satisfying Mutual Exclusion condition. Then if the process Q is executing in its critical section then
Neither ‘P’ nor ‘R’ executes in their critical section
Mutual exclusion permits at most one of these cooperating processes in the protected critical section at a time. If Q is executing there, neither P nor R can execute in its corresponding critical section.
To overcome difficulties in Readers-Writers problem, which of the following statement/s is/are true?
1) Writers are given exclusive access to shared objects
2) Readers are given exclusive access to shared objects
3) Both readers and writers are given exclusive access to shared objects.
Choose the correct answer from the code given below: