A system has 3 processes sharing 4 resources, if each process needs a maximum…
2022
A system has 3 processes sharing 4 resources, if each process needs a maximum of 2 units, then deadlock —
- A.
Can never occur
- B.
May occur
- C.
Has to occur
- D.
None of the above
Attempted by 364 students.
Show answer & explanation
Correct answer: A
Given: Number of processes P = 3
Total resources R = 4
Maximum need per process 2 units
To guarantee deadlock prevention , the rule is: R≥P×(max need−1)+1 Let's check: R≥3×(2−1)+1=3+1=4 And here: R=4⇒condition satisfied Since the system satisfies the condition for deadlock-free operation , 👉 deadlock can never occur .