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

  1. A.

    Bothย โ€˜๐‘ƒโ€ฒย andย โ€˜๐‘…โ€ฒย execute in critical section

  2. B.

    Neitherย โ€˜๐‘ƒโ€ฒย norย โ€˜๐‘…โ€ฒย executes in their critical section

  3. C.

    โ€˜๐‘ƒโ€ฒย executes in critical section

  4. 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.

Explore the full course: Nta Ugc Net Paper 2

Loading lessonโ€ฆ