in Operating System
1,206 views
0 votes
0 votes

Consider a system with four processes P0, P1, P2, P3 and 5 resources A, B, C, D, E.

The 'maximum' and 'allocation' of resources for each process is given below.

If the resources available are 0, 0, X, 1, 1. What will be the minimum value of X for which the system will be in safe state?

in Operating System
1.2k views

1 comment

Try to find requirement of each process

Requirement is as follows :

p0 = 01002

p1 = 02100

p3 = 10300

p4 = 00111

Now try to allocate the resources, if X = 1then it will satisfy need of p4 and then resources of p4 will get freed up

Hence new availability = 11221. But then it doesn't satisfy any requirement hence unsafe state when x= 1.

Try x =2 it will satisfy all requirement. Hence answer is X =2.

1
1

Please log in or register to answer this question.

Related questions