2 2 votes which of the following is true? a:resource preemption is allowed in deadlock can be avoided but cannot be prevented B: if the number of shared resources is greater than the number of process then deadlock can be prevented C: deadlock can be prevented by not allowing any process to request for resources when it enters the critical section D: deadlock avoidance schemes required information concerning which resource a process will request and used during its lifetime Operating System drdo-2009 operating-system resource-allocation + – mobashshir 3.3k views answer comment Share Follow Print See all 7 Comments 7 7 Comments reply Shaik Masthan commented Aug 15, 2018 reply Follow flag Option D is true 1 1 replyShare mobashshir commented Aug 15, 2018 reply Follow flag why not B AND C ?can you plz elaborate 0 0 replyShare Shaik Masthan commented Aug 15, 2018 reply Follow flag OPTION B:- deadlock depend upon not only no.of resources available, it's also depend upon how many resources required by the each processes let consider P1,P2 and there are R1,R2,R3 P1 requires R1, R3 and P2 requires R1,R2 and R3 now at starting P1 allocates to R3 and P2 allocates R1 ===> lead to deadlock Option C:- deadlock can be prevented by not allowing any process to request for resources when it enters the critical section assume when process in CS, you didn't allow any request, after sometime it's coming out of CS, Now you may allocate and that allocation may leads to DEADLOCK ex:- interested variable synchronizing method of two processes 1 1 replyShare aashu06 commented Nov 4, 2018 reply Follow flag @shaik masthan can u please explain option d 0 0 replyShare Shaik Masthan commented Nov 4, 2018 reply Follow flag deadlock avoidance schemes required information concerning which resource a process will request and used during its lifetime it means, deadlock avoidance scheme ( Bankers Algorithm ) need a prior knowledge about a process requests during it's life time ===> you have to know maximum demand of each process before starting the process to run 2 2 replyShare parmarluxmi commented Oct 2, 2019 reply Follow flag option (d) is correct answer 0 0 replyShare Nayanita commented May 10, 2020 reply Follow flag can anyone please explain why option (a) is incorrect?? 0 0 replyShare Please log in or register to add a comment.
0 0 votes Answer is D .. avadh answered Oct 29, 2018 avadh comment Share Follow 0 reply Please log in or register to add a comment.