The Gateway to Computer Science Excellence
0 votes

in Operating System by Active | 803 views

1 Answer

0 votes
Let si be the resosurces required by process i.
To avoid deadlock condition atleast, one process should be allocated all the resources it needs.
In worst case, let all processes are allocated si-1 resources
Then sum if (si-1) for i = 1 to n where n is number of processes must be less than total number of resources available.
i.e;  sum of (si) - n < m (total number of resources available). Therefore in this question,
sum of resources needed for all the processes - 7(no. of processes) < 10 (total resources)
 sum of resources needed for all the processes  < 10+7 =17

Sorry , I did not know how to put sigma here, that's why the solution may appear a little unclear.
U can check for this solution in this link (4th question)
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
52,223 questions
59,811 answers
118,087 users