DBMS
Programming and Technical
Programming
Technical
What is a deadlock?
Read Solution (Total 2)
-
- #A set of blocked processes each holding a resource and waiting to acquire a resource held by another process in the set.
#Example
->System has 2 tape drives.
->P1 and P2 each hold one tape drive and each needs another one.
#Deadlock can arise if four conditions hold simultaneously
1.Mutual exclusion: only one process at a time can use a resource.
2.Hold and wait: a process holding at least one resource is waiting to acquire additional resources held by other processes.
3.No preemption: a resource can be released only voluntarily by the process holding it, after that process has completed its task.
4.Circular wait: there exists a set {P0, P1, …, P0} 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 P0 is waiting for a resource that is held by P0.
- 11 years agoHelpfull: Yes(4) No(0)
- A deadlock is a condition in which two or more process in a set are simultaneously waiting for the resource held by some other process which itself is in a waiting state.
- 11 years agoHelpfull: Yes(2) No(0)
DBMS Other Question