1 votes 1 votes Three process p1 p2 p3 have 4 resource and request for k instance... What was the ans of this khedkar devidas asked Feb 4, 2018 khedkar devidas 737 views answer comment Share Follow See all 4 Comments See all 4 4 Comments reply SHUBHAM SHASTRI commented Feb 4, 2018 reply Follow Share 2..should be answer.. 1 votes 1 votes learner_geek commented Feb 4, 2018 reply Follow Share I marked it as 4 0 votes 0 votes Mk Utkarsh commented Feb 4, 2018 reply Follow Share 2 is correct 0 votes 0 votes SHUBHAM SHASTRI commented Feb 4, 2018 reply Follow Share here they asked that deadlock should not occure .. say you fix k as 3.. means each one need 3 instances ..now we allocated as 1,1,2....not a single one is able to fulfil the requirement. But say K=2.. means each one need 2 for completion. now i will assign them as 1,1,2 ...here i can complete the req. of the last one so we can successfully run system with no deadlock... 0 votes 0 votes Please log in or register to add a comment.
Best answer 0 votes 0 votes (K-1)+(K-1)+(K-1)+1=4 3K-2=4 K=2 AVINASH CHAUHAN answered Feb 4, 2018 selected Feb 4, 2018 by khedkar devidas AVINASH CHAUHAN comment Share Follow See all 0 reply Please log in or register to add a comment.