Open In App
Related Articles

GATE | GATE CS 1996 | Question 44

Improve Article
Improve
Save Article
Save
Like Article
Like

A solution to the Dining Philosophers Problem which avoids deadlock is:
(A) ensure that all philosophers pick up the left fork before the right fork
(B) ensure that all philosophers pick up the right fork before the left fork
(C) ensure that one particular philosopher picks up the left fork before the right fork, and that all other philosophers pick up the right fork before the left fork
(D) None of the above


Answer: (C)

Explanation: In Dining Philosophers Problem it ensure that one particular philosopher picks up the left fork before the right fork, and that all other philosophers pick up the right fork before the left fork which avoids the deadlock condition.

Option (C) is correct.

Quiz of this Question

Last Updated : 28 Mar, 2020
Like Article
Save Article
Similar Reads