0 0 votes Consider two processes p1 and p2 each needed 3 resources 1, 2,3 in databases. If each, processes ask them in any order, then the number of ways possible in which system is guaranteed to be deadlock free? Operating System deadlock-prevention-avoidance-detection + – Warrior 1.0k views answer comment Share Follow Print See all 8 Comments 8 8 Comments reply Show 5 previous comments kumar.dilip commented Nov 2, 2018 reply Follow flag You can get some idea from here https://gateoverflow.in/89309/consider-two-processes-p-and-q-each-need-three-records 1 1 replyShare Warrior commented Nov 2, 2018 reply Follow flag Yeah,according to me ans should be 12.If process p1 request <1,2,3> and p2 request <1,2,3> or <1,3,2> these two cases are free from deadlock and in remaining 4 cases deadlock may possible.There are 6 permutations for p1 and for each 2 deadlock free . So total no of ways possible = 6*2=12. Actually this qn was also ask in one of the test series and ans was given 120.I dont know how 120? 0 0 replyShare Gurdeep Saini commented Nov 2, 2018 reply Follow flag total 12 is deadlock free 1 1 replyShare Please log in or register to add a comment.