edited by
1,352 views
4 votes
4 votes

question : 

edited by

1 Answer

10 votes
10 votes

To avoid deadlock in Dining Philosophers Problem there are two simple solutions . Consider there are N philisophers

  1.   (N-1) Philosopers First Take Left Fork then Right Fork , Last Philosopher Take Right and then Left
  2.  All philoposher sitting in ODD position take Left Fork then Right Fork , All philosophers sitting in EVEN position take right fork first then Left Fork .

Assuming option b is telling the point number 2 . hence both should be correct .

Reference

edited by

Related questions

2 votes
2 votes
3 answers
1