What are the necessary conditions to Produce a Deadlock?

Do you the process of creating a deadlock?
Add a comment

8 replies

"Deadlock the type of symptom in multiprocessing programs, parallel calculating and also distributed devices, in which software system and also computer hardware a lock are widely-used to cope with divided methods as well as implement process synchronization.[3] "
Add a comment
"Two interactive operations over a medieval instant gadget with no window process each and every wish to command laptop keyboards (so the end user tin character in these individuals) and also the screen (to enable them to answer). If course of action G holds laptop keyboards while practice Q holds this display, the two can be stuck expecting the opposite resource. "
Add a comment
"Necessary Conditions for Deadlock : A Deadlock Situation can arise if the following four conditions hold simultaneously in a system : (1) Mutual exclusion : At least one resource must be held in a non-sharable mode; that is, only one process at a time can use the resource. (2) Hold and wait : There must exist a process that is holding at least one resource and is waiting to acquire additional resources that are currently being held by other processes. (3) No preemption : Resources cannot be preempted; that is, a resource can be released only voluntarily by the process holding it, after that process has completed its task. (4) Circular wait : There must exist a set {P0, P1, . . . , Pn} of waiting processes such that P0 is waiting for a resource that is held by P1, P1 is waiting for a resource that is held by P2, . . ., Pn-1 is waiting for a resource that is held by Pn, and Pn is waiting for a resource that is held by P0. Source:"
Add a comment