All mock tests are FREE till 31 December — register to save your progress

Suppose a system has 12 instances of some resource with n processes competing for that resource. Each process may require 4 instances of the resource. The maximum value of n for which the system never enters into deadlock is

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: A. 3

Explanation

Deadlock is impossible if n(4 − 1) + 1 ≤ 12, i.e. 3n ≤ 11, so n ≤ 3.

More System Software and Operating System questions