208k views
2 votes
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 these

1 Answer

4 votes

Final answer:

The hold and wait condition can be prevented by ensuring that a process does not hold any resources when requesting a new resource, the process requests and allocates all its resources before beginning execution, and the process can only request resources when it has none.

Step-by-step explanation:

To ensure that the hold and wait condition never occurs in the system, it must be ensured that All of these. Each option mentioned in the question contributes to preventing the hold and wait condition. Option a) ensures that a process does not hold any other resources when requesting a new resource, option b) ensures that a process requests and allocates all its resources before beginning execution, and option c) ensures that a process can only request resources when it has none.

User Shashanka N
by
7.6k points