2 votes 2 votes System with 100 process and single resource R with 100 instances. Each process needs a minimum of one instances to complete. Deadlock is possible Starvation is possible Thrashing Deadlock is not possible Operating System ace-test-series operating-system deadlock-prevention-avoidance-detection resource-allocation + – hacker16 asked Nov 11, 2017 edited Mar 7, 2019 by Rishi yadav hacker16 1.0k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
2 votes 2 votes the above condition is checking for deadlock. if condition is true then no deadlock otherwise deadlock Hira Thakur answered Nov 12, 2017 Hira Thakur comment Share Follow See all 3 Comments See all 3 3 Comments reply hacker16 commented Nov 13, 2017 reply Follow Share here, each process need min of 1 resources to complete, thus we can also be able to say that for some process more than 1 instances may be required. let us suppose process p1 need 101 resource (it is already fulfilling min 1 instance of resource), then it could be lead to deadlock? Dear @Hira sir please help me out to clarify my doubt regarding min keyword. if it could be max then it would be ok to say no deadlock. 0 votes 0 votes srivivek95 commented Nov 13, 2017 reply Follow Share As the question says, Each process needs a minimum of one instances to complete. One instance of resource is sufficient for the process to complete.Process once complete can ask for more resources in future but that doesn't have anything to do with the current scheme of resource allocation. 2 votes 2 votes Hemanth_13 commented Dec 3, 2018 reply Follow Share If we give each process a resource then 100 processes gets 100 resources. If every process expecting another resource then it would be a deadlock right?? but as these are instances of same resource every process will release it's resource after its work is done so this fixes deadlock am I correct? 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes PROCESSES:-P1 P2 P3 P4 P5 P6 ...........................P100 INSTANCES :-1 1 1 1 1 1.............................1 , HERE WE HAVE 100 process and 100 instances and every process required 1 instance so all requirement is fullfil , so NO DEADLOCK krmanish043 answered Dec 26, 2018 krmanish043 comment Share Follow See all 0 reply Please log in or register to add a comment.