Deadlock prevention say :
All four of the conditions are necessary for deadlock to occur, it follows that deadlock might be prevented by denying any one of the conditions.
Conditions
Mutual Exclusion
Hold and Wait
No Premption
Circular Wait
Now
Let us deny first one
- Mutual Exclusion
There are many examples to prove that Mutual Exclusion may lead to deadlock like here .
Now let us prevent this Mutual Exclusion .But the problem is that
The mutual exclusion condition must hold for non-sharable resources. That is, several processes cannot simultaneously share a single resource. This condition is difficult to eliminate because some resources, such as the tape drive and printer, are inherently non-shareable.check this.
Question/Doubt
We cannot eliminate Mutual Exclusion then **why is it one of the condition **??