DEADLOCK PREVENTION
- System design strategy.
- In refers to careful designing of the system.
- It refers to the careful designing of the system.
- More stringent.
- This prevents deadlock by restraining how requests can be made. The restraints make sure that a minimum of one in all the required conditions for deadlock can not occur.
- The side effects of preventing deadlocks are low device utilization, reduced system throughput.
- Different approaches for deadlock prevention are:-
- Spooling
- Allowing a process to hold any instant.
- Request all resources initially.
- Order resource numerically.
DEADLOCK AVOIDANCE
- Resource allocation strategy.
- It refers to careful resource allocation.
- It intends to avoid unsafe situations that may lead to deadlock.
- Less stringent.
- This strategy is to grant only those requests for available resources which can not possibly result in deadlock.
- Deadlock avoidance is not possible every time as many processes cannot give the complete sequence of requests in advance.
- Banker's algorithm is a well know scheduling algorithm to avoid deadlock.
Post a Comment
Post a Comment