An operating system implements a policy that requires a process to rel...
The given operating system follows DEAD LOCK prevention policy which also ensures neither starvation nor deadlock can occur.
View all questions of this test
An operating system implements a policy that requires a process to rel...
Explanation:
The given policy mandates that a process must release all resources before requesting another one. This prevents both starvation and deadlock scenarios from occurring. Let's understand why:
Starvation:
Starvation occurs when a process is unable to acquire the resources it needs to make progress. In the given policy, a process must release all its resources before requesting another one. This ensures that resources are not held indefinitely, and other waiting processes get a chance to acquire them. Therefore, starvation cannot occur.
Deadlock:
Deadlock occurs when multiple processes are blocked, waiting for resources held by each other, resulting in a circular dependency. In the given policy, a process must release all its resources before requesting another one. This ensures that a process releases all the resources it holds before making another request. Therefore, there can be no circular dependency, and deadlock cannot occur.
Conclusion:
In conclusion, the given policy prevents both starvation and deadlock scenarios from occurring. Therefore, the correct answer is option 'D' - Neither starvation nor deadlock can occur.