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

Consider a system with 29 resources. There are n processes whose demand for resources increases by 1 after every 5 seconds. All processes arrive at same time & starts with demand as 1, 2, 3 etc. For example, P1 puts demand as 1, P2
puts as 2, & so on. Processes releases the resources only at termination. How many maximum number of processes we can have to ensure no deadlock, if every process requires 2 2 seconds for execution is ____

Open in App
Solution

Let n = 4

For no deadlock (4+5+6+7)+1 = 23 resources are required which is less than 29.
if n = 5
at t = 21
P1......5P2......6P3......7P4......8P5......9⎪ ⎪ ⎪ ⎪ ⎪ ⎪⎪ ⎪ ⎪ ⎪ ⎪ ⎪
For no deadlock minimum :
(4+5+7+8)+ 1=31 resources are required.
But since we have only 29 resources, Deadlock is possible. Answer = 4.

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