569 views
0 votes
0 votes

In Dining philosopher's problem, there are 8 number of diners and X number of chopsticks. What is the minimum value of X which ensures that therewill be no deadlock
 

Note: Even number philosopher takes left fork first and odd number philosopher takes right fork first.

1 Answer

0 votes
0 votes

The 8 philosopher will take 1 fork each and then remaining one fork can be taken by any philosopher to break deadlock, if any is formed.

So: Total forks =  8+1 = 9 forks

Related questions

0 votes
0 votes
1 answer
1
0 votes
0 votes
1 answer
2
Overflow04 asked Jan 7, 2023
697 views
When a page is referred for the first time, then it will be counted in page fault or not?.E.g page reference 1,2,3,4,2,1.LRU is used with 3 frames(initially empty).
0 votes
0 votes
0 answers
4
Arbaz__Malik asked Dec 25, 2021
643 views
given solution is wait(P) , wait(Q), wait(p) , wait(Q) for s1,s2,s3,s4 respectivelyI know this implementation is deadlock free just want to ask if it will follow bounded ...