Deadlock – two or more processes are waiting indefinitely for an event that can be caused by only one of the waiting processes.
Starvation – indefinite blocking. A process may never be removed from the semaphore queue in which it is suspended.
同时死锁和饥饿有一个本质的区别,死锁占用了资源。而饥饿没有占用资源。解决饥饿的问题可以利用老化的方法。