In: Computer Science
What do you understand by Circular wait? Is it possible to create a deadlock using only the Mutual exclusion? Explain in your own way.
Q) What do you understand by Circular wait?
Ans: Circular wait: each process must be waiting for a resource which is being held by another process, which in turn is waiting for the first process to release the resource.
Q) Is it possible to create a deadlock using only the Mutual exclusion?
Ans: No, it is not possible to create a deadlock using only the Mutual exclusion condition.
A deadlock situation on a resource can arise if and only if all of the following conditions hold simultaneously in a system:
These four conditions are known as the Coffman conditions from their first description in a 1971 article by Edward G. Coffman, Jr.
Thus all of the conditions are necessary for a deadlock to occur because even with one condition missing, some of the resources can be successfully passed to the processes to execute either partially or completely so for complete deadlock to occur, we need all the 4 conditions to take place simultaneously, so that every process keeps waiting for its corresponding resource for its execution.
Hope this answers your questions, please leave a upvote if you find this helpful.