1 1 vote Que- Consider the following statements about the dining philosopher problem. 1. There should be at least 6 chopsticks to avoid deadlock for 6 philosophers. 2. If the asymmetric solution is implemented then $1^{st}$ philosopher picks up her right chopstick first while $6^{th}$ philosopher picks up her left chopstick first. Which of the above statement is correct? a. Only 1 b. Only 2 c. Both I and II d. None of the above Operating System testbook-test-series operating-system process-synchronization + – Soumya29 1.7k views answer comment Share Follow Print See all 6 Comments 6 6 Comments reply Deepanshu commented Jan 6, 2019 reply Follow flag i think only a 0 0 replyShare Shaik Masthan commented Jan 6, 2019 reply Follow flag there are 3 types of solution for dining philosopher problem 1) using semaphores 2) form two groups as alternative persons are in one group (i.e., 1-3-5-... in one group, 2-4-6-... in another group.) one group has first pick Left fork then Right fork another group should has to first pick Right fork then Left fork 3) philosophers are numbered as 0 to n-1, as similar to second one, where 0,....n-2 philosophers in one group, n-1$^{th}$ as one group. that single person has to first pick Right fork then Left fork, remaining are first pick Left fork then Right fork. 2 2 replyShare Soumya29 commented Jan 7, 2019 reply Follow flag Thanks, @Shaik sir. @Deepanshu @Shaik sir, Can you please give an example for deadlock in case of $2^{nd} statement$? 0 0 replyShare Shaik Masthan commented Jan 7, 2019 reply Follow flag i mean to say, answer is option C 0 0 replyShare Soumya29 commented Jan 7, 2019 reply Follow flag Ohh..Ok.. I too think so. Thank you. In made easy solution, they gave- option A . 0 0 replyShare Deepanshu commented Jan 7, 2019 reply Follow flag they have to specify more things so that option c is correct they are just telling about 1st and 6th only .. so what about 2nd ,3rd,4th 5th they can either go right either left ......now for one case( right one )there can be deadlock and they are not specifying about them so i think a 0 0 replyShare Please log in or register to add a comment.
0 0 votes Yes c is the correct option Vaishnavi Gadhe answered Apr 9, 2022 Vaishnavi Gadhe comment Share Follow 0 reply Please log in or register to add a comment.