Chinese, asked by sattar4840, 1 year ago

Compare deadlock prevention and deadlock avoidance

Answers

Answered by atharvkaushik1
1
Hey mate


Deadlock prevention
1. It is based on the fact that if any of the four necessary conditions is prevented, a deadlock will not occur.
2. It doesn’t need the knowledge of future process resource requests.

3 Advantage: It avoids the cost of detecting and resolving deadlocks because this method would make any of the four conditions false and avoid deadlock

4 Disadvantage: It results in degraded system efficiency and low device utilization.
—————————————————————————————————————————————————

Deadlock Avoidance

1. It checks the state of the system, in advance and sees if the allocation of a resource will lead to a deadlock condition, if so it should wait.
2. The avoidance method requires the knowledge of all future process resource requests
3. Advantage: This method runs dynamically while allocating resource to a process and does not constrain the resources or processes with no system degradation or underutilization.
4. Disadvantage: It has certain restrictions like resource requirement of each process in advance, a fixed number of resources to allocate, no process should exit while holding resources.

atharvkaushik1: Hope it help u
atharvkaushik1: Please mark it as brainliest
Similar questions