1.

To ensure that the hold and wait condition never occurs in the system, it must be ensured that ____________(a) whenever a resource is requested by a process, it is not holding any other resources(b) each process must request and be allocated all its resources before it begins its execution(c) a process can request resources only when it has none(d) all of the mentionedThe question was posed to me in an interview.The doubt is from Deadlock Prevention in section Deadlocks of Operating System

Answer»

Correct option is (d) all of the mentioned

The explanation is: c – A process MAY REQUEST some resources and use them. Before it can can request any additional resources, however it must release all the resources that it is currently ALLOCATED.



Discussion

No Comment Found

Related InterviewSolutions