What is deadlock? How do you avoid it?
Answer Posted / manzoor elahi laskar
A deadlock is a situation in which two computer programs
sharing the same resource are effectively preventing each
other from accessing the resource, resulting in both
programs ceasing to function.
In order for deadlock order to avoid deadlock following
cases must be avoided.
• Mutual exclusion -a resource that cannot be used by
more than one process at a time. (Two processes cannot
simultaneously control the same resource or be in their
critical section).
• Hold and Wait - processes already holding resources
may request new resources
• No preemption - Once a process holds a resource, it
cannot be taken away by another process or the kernel.
• Circular wait - Each process is waiting to obtain a
resource which is held by another process.
| Is This Answer Correct ? | 50 Yes | 11 No |
Post New Answer View All Answers
How do I compare plugins in notepad ++?
Can kernel panic be fixed?
What is gnu os?
When I press power button on laptop nothing happens?
What os is used at google?
What do you mean by Run time Errors?
How To Convert A Normal Vg To Big & Scalable Vg And Also Big To Scalable Vg?
How do you pronounce gnu?
Is deepin os stable?
What is a file in os?
What is concurrency go?
What is the most powerful server in the world?
Can you just explain about memory management in iOS?
what are latest technologies ? and how will keep yourself up to date ?
any body tell me what are the prob's mostly we face and send some critical prob in real time environment in Solaris and veritas (VXVM,VCS)