A system has identical resources and processes competing for them. Each process can request at most resources. Which one of the following values of could lead to a deadlock?
View worked solution
Answer: D
To find the condition under which a deadlock can occur, we use the standard resource allocation inequality. For processes, each having a maximum demand of identical resources, with a total of resources available, the system is guaranteed to be deadlock-free if:
Since all processes have the same maximum demand , this simplifies to:
A deadlock could occur if this condition is violated, i.e., when:
Let's analyze based on the maximum demand :
- With (Original GATE 2015 Exam Question):
Here, and . Thus, a deadlock can occur for any . Among the given options, can lead to a deadlock (for example, two processes holding resources each, and two processes holding resource each, leaving free resources). - With (As printed in the question text):
Here, and . In this case, a deadlock is only possible if . None of the options or would lead to a deadlock.
Aligning with the official GATE answer key, the intended question uses , making D the correct option.
Free practice · Your answers on this page are not saved.
