Deadlock Flashcards
What is Deadlock?
Deadlock is a situation where a set of processes are blocked because each process is holding a resource and waiting for another resource to be acquired by some other process.
What conditions are necessary for deadlock to occur?
There are four different conditions that result in Deadlock. Those being:
* Mutual Exclusion - resources are non-shareable
* Hold and wait - processes are able to hold a resource while waiting on others
* No preemption - a resource cannot be removed from a process or released voluntarily by it
* Circular wait - processes form a list or chain where each process is waiting for a resource held by the next process in the chain
How can deadlock within a compuer system be resolved?
Deadlock can be resolved by cancelling and restarting the first process.