An operating system cotains 4 user processor each requiring 5 units of resource R. The minimum number of required units of \( R \) such that no deadlock will every occur is
Deadlock is possible if every process holds one less than it needs and no unit is free.
Worst case: each of the 4 processes holds \(5 - 1 = 4\) units, using \(4 \times 4 = 16\) units, and all are waiting.
With one more unit (17 in total), at least one process can get its 5th unit, finish, and release its resources. Then the others can finish too.
Minimum units = \(4(5-1) + 1 = 17\).
Answer: (C) 17
Reinforce your conceptual grasp with related questions from CUET-MCA 2024:
Take timed full-length mock tests with authentic question distributions, negative marking (+12/-3 in Math), and instant All India Rank calculation.
Start Free Mock Test Series →