Ch. 6 PPT Flashcards
What is deadlock?
The permanent blocking of a set of processes that either compete for system resources or communicate with each other
How can you tell if something is deadlocked?
If each element of a set is waiting an event by another element that is also blocked
What is hold and wait?
A process may hold allocated resources while awaiting assignment of others
What is no pre-emption?
No resource can be forcibly removed from a process holding it
What is circular wait?
A closed chain of processes exists, such that each process holds at least one resource needed by the next process in the chain
What is deadlock prevention?
Attempting to design a system such that deadlock is excluded
How is deadlock prevention approached?
Indirect: Prevent the three necessary conditions. Direct: precent circular wait
What is no preemption?
If a process is denied a further request, it must release its currently held resources.
How can a deadlock be avoided?
By determining if a request can lead to a future deadlock. Requires knowing future requests
What is another way of preventing deadlock?
By imposing resource restrictions on processes
How does deadlock detection work?
It gives the process whatever it asks for
What is good about deadlock detection?
The algorithm is simple and it can lead to early detection
What is bad about deadlock detection?
It consumes more processor time
What is a deadlock recovery strategy?
Abort all deadlocked processes, or abort some until the deadlock is gone, or restore to a pre-deadlock time
What is the dining philosopher problem?
Encore mutual exclusion.. No two things can use the same resource at the same time