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 —

  1. A.

    Can never occur

  2. B.

    May occur

  3. C.

    Has to occur

  4. 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 .

Explore the full course: Up Lt Grade Assistant Teacher 2025