retagged by
1,443 views
1 1 vote
There are $5$ processes which require resource instances of same type in quantities $23, \ 35, \ 12, \ 43, \ 15$ respectively. The minimum number of resource instances required for preventing deadlock is _______

1 Answer

Best answer
1 1 vote

Let here are n processes in the system and each one needs k instances of a resources to complete. Then the minimum number of resources that you should keep in the system to ensure no deadlock in the system is n*k-n+1 , where n*k = sum of all resources.

its like n*k-n resources are required so that each process can have one less than the resource instance they require.. but still deadlock can occur as each process depend upon other process for one resource instance ..if we provide n*k-n+1 resource instances than the deadlock condition will never occur.

so use this formula here , here n =5 , n*k = 23+35+12+43+15 =  128

so n*k-n+1 = 128-5+1= 123 +1= 124 

selected by
Answer:
Position:
Show:

Related questions

1 1 vote
1 answers 1 answer
955
955 views
Bikram asked Dec 26, 2016
955 views
Consider an operating system containing $n$ processes each requiring $4$ resources. The maximum number of processes that can be executed without any deadlock if there are...
2 2 votes
1 answers 1 answer
1.0k
1.0k views
Bikram asked Dec 26, 2016
1,003 views
A uniprocessor system has two resources of type A and B shared by four processes. There are $4$ units of each resource type available after allocation. Let “current” indi...
3 3 votes
1 answers 1 answer
2.1k
2.1k views
Bikram asked Dec 26, 2016
2,111 views
Consider a system with five processes $P0$ to $P4$ and three resources $R1$, $R2$ and $R3$, each having $10, \ 5, \ 7$ instances respectively. The system table at time $T...
3 3 votes
2 answers 2 answers
1.4k
1.4k views
Bikram asked Dec 26, 2016
1,359 views
Which of the following statements are not true?All unsafe states are deadlocksA deadlock state is unsafe stateA system is in safe state only if there exists a safe sequen...