There are resources in system, n processes & k is the requirement of each process. Which of the following condition must be satisfied so that deadlock free operation is guaranteed with minimum number of resources?
A
nk−n+1≤r
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
nk−n+1≥r
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
nk+1≤r
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
nk+1≥r
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is Ank−n+1≤r In worst case deadlock happens if every process is short of 1 resource & we have no extra resource left to fulfill anyone's requirement i.e. n(k−1)=r may cause the deadlock.
To guarantee deadlock free operation we should have 1 extra
resource. ∴ The condition should be: n(k−1)+1≤r i.e. nk−n+1≤r.