Deadlock Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is Deadlock?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What conditions are necessary for deadlock to occur?

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How can deadlock within a compuer system be resolved?

A

Deadlock can be resolved by cancelling and restarting the first process.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly