Deadlocks Flashcards
Prevent sets of concurrent prcesses from completing their tasksq
Deadlock
Process utilization in a system model
REQUEST > USE > RELEASE
Rag
R->P
Assignment edge
Rag
P->R
Request edge
If graph contains no cycle ->
If graph contains a cycle and one instance per resource type ->
If multiple instance per resource type ->
No deadlock
Deaflock
Possibility if deadlock
Ensure that system will neber enter a deadlockq
Deadlock handling
Allow system to enter deadlock syate tyen recover
Deadlock prevention
Ignore the probelm and pretend that desflocks never occur in the system
Deadlock avoidance
Avoidance algorithm of a single instance of a resource type
Resource allocation graph
Recovery from deadlock where you abort all deadlock processes
Process termination
Recovery from deadlock by RESOURCE PREEMPTION
3 ways
Selecting a victim - minimize cost
Rollback -return to safe state
Starvation - same process is picked a s avictim