What is deadlock? How do you avoid it?
Answer Posted / kavya
deadlock is sate in which each of the process is waiting for other process to complete.
this problem can be solved in two ways
1. deadlock prevention
2. deadlock avoidance
deadlock prevention is to make sure that any of the four necessary conditions for deadlock to occur doesn't hold good.
four necessary conditions are
a) mutual exclusion
only one process at a time can use a resource
b) hold and wait
if process require more resources it must hold the allocated resources and wait for the required resources
c) no preemption
none of resources are taken back by operating system until a process releases it
d)circular wait
all the process are waiting for resources in a circular manner
deadlock avoidance:
In this method data related to process like resources allocated , resources needed, arrival time etc are studied and occurance of deadlock is predicted. If deadlock is in safe state then resources are allocated or else they are not .
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What does kernel panic mean?
discuss the procedures to evaluate disk excess time
Assuming one link of the Trojan horse copy-and-observe-later chain is broken. There are two other possible angles of attack by Alice: Alice logging on and attempting to read the string directly, and alice assigning a security level of sensitive to the back-pocket file. Does the reference monitor prevent these attacks?
How To Enable & Disable Quorum?
Is the higher the ghz the better?
Is heap shared between processes?
Do simultaneous downloads take longer?
Explain the term shell.
What does download with adm mean?
what is memory managemant in Win95
Dear All, When the patches are installed in the server OS, how will we know that which patch is the latest patch?
Explian T - Factor?
What are positional parameters?
How do you fix a computer that won't start up?
i want information about real time operating systems because i have an interview tomoorow in valeo company.