Consider a system having 'm' resource of the same type. The resources are shared by 3 processes P, Q, R which have peak time demands 5, 6, 8 respectively. The minimum value of 'm' that ensures the deadlock will never occur is
A
18
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
17
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
15
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
16
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is B 17 (D)
Minimum resources that are required to avoid deadlock
= (m1−1)+(m2−1)+−−−−+(my−1)+1
Where, m = resources required by process, y = number of processes.
So, number of resources that ensure the deadlock will never occur is
= ( 5 -1 ) + ( 6 - 1) + ( 8- 1)+1
= 4 + 5 + 7 +1
= 17