DEADLOCK - Mind Map

DEADLOCK

Deadlock Detection

- Circular Wait

- Cost must be consider

-one method is RAG

System Model

- Request

- Use

- Release

Safe State

Safe State = No Deadlocks

Avoidance

System will never enter an unsafe state

Avoidance Algorithms

RAG = Single Instance

Banker's = Multiple Instances

Resource Allocation

Edges

Vertices

Deadlock Avoidance

-Process declare Max num of R

- Ensure never be a circular wait

- RAG defined by number of available and allocated R

Deadlock Problem

Process holding a resource and waiting to acquire a resource held by another process

Handling Deadlock

- Prevent

- Detect and Recover

- Ignore Problem

Algorithm

Bankers

P->Request

Deadlock Prevention

- Mutual Exclusion

- Hold and Wait

- No Preemption

- Circular Wait

Basic Facts

No cycle=No deadlock

Recovery From Deadlock

Process Termination

1. Abort all deadlocks

2. Abort one process

Resource Preemption

1. Selecting a victim

2. Rollback

3. Starvation

Click here to center your diagram.
Click here to center your diagram.