wiz-icon
MyQuestionIcon
MyQuestionIcon
8
You visited us 8 times! Enjoying our articles? Unlock Full Access!
Question

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
= (m11)+(m21)++(my1)+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

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
System Model
OTHER
Watch in App
Join BYJU'S Learning Program
CrossIcon