Give a brief intuitive argument for the necessity of each individual condition.
What will be an ideal response?
Mutual exclusion: Because the resource can be used by only one process at a time, contention develops for it, forcing other processes to wait, and this can lead to deadlock. Wait-for: If the processes did not hold resources while waiting for more, then contention could not develop. No-preemption: A sure way to prevent deadlock is simply to yank resources away from one process and give them to another. On the kinds of resources that can be involved in deadlocks, such yanking can result in loss of work. Circular-wait: Without this condition processes cannot contend for resources that others own while those other processes contend for resources owned by the earlier processes.
You might also like to view...
Constructing one class from another is accomplished by using a capability called ____.
A. inheritance B. polymorphism C. code reuse D. object-oriented programming
By default, execution flows through a method’s statements ____.
A. sequentially B. selectively C. simultaneously D. repetitively