Suppose ๐,๐ and ๐ are co-operating processes satisfying Mutual Exclusionโฆ
2018
Supposeย ๐,๐ย andย ๐ ย are co-operating processes satisfying Mutual Exclusion condition. Then, if the processย ๐ย is executing in its critical section then
- A.
Bothย โ๐โฒย andย โ๐ โฒย execute in critical section
- B.
Neitherย โ๐โฒย norย โ๐ โฒย executes in their critical section
- C.
โ๐โฒย executes in critical section
- D.
โ๐ โฒย executes in critical section
Attempted by 638 students.
Show answer & explanation
Correct answer: B
Mutual Exclusion: At most one process may be in the critical section at any given time.
Given that Q is executing in its critical section.
By mutual exclusion, no other process (including P and R) can be in the critical section at the same time.
Therefore, neither P nor R executes in their critical sections while Q is executing.
Conclusion: Since Q is in its critical section and mutual exclusion holds, the correct statement is that neither P nor R executes in their critical section.
A video solution is available for this question โ log in and enroll to watch it.