Answer Posted / sravan reddy
Deadlock is a situation where the resources are not
allocated to the process because they are already used by
another process..ie../suppose P1 requests resources of P2
which is already used by P3 and so on...
this is not the only case for occurence of deadlock..
for a dead lock to occur there are 3 necessary conditions
and 1 sufficient condition..so totally 4..
the 3 necessary conditions are..
1)Mutual Exclusion
2)Non-Preemption
3)Hold and wait
and the sufficient condition for deadlock to occur is
Circular wait.
so to occur a deadlock all 4 conditions must be happened at
a time..either of the case is not present..deadlock will not
occur..
if we can avoid any one of the condition we can avoid deadlock..
and as mentioned in above answer..one can avoid deadlock as
follows..
1)prevention
2)avoidance
3)detection
4)recovery
Is This Answer Correct ? | 22 Yes | 3 No |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category