what is a deadlock?
occurs when two or more threads are waiting for an event that can only be caused by another process
what is a preemptable resource?
can be taken away from a process without a problem
what is a preemptable resource?
would cause a problem to fail if taken away
starvation
an indefinite block of a thread
- all deadlocks cause starvation
- not all starvation are caused by deadlocks
what are the four conditions for deadlock?
what is live lock?
occurs when threads can execute but cannot make progress
how do we deal with deadlock?