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
Can you have concurrency but not parallelism?
How can I clean up my computer?
What happens if you turn off computer during update?
What is the difference between wget and curl?
Where can I get a free operating system?
discuss the procedures to evaluate disk excess time
What do you know about the latest android version Lollipop?
why we make plex offline online in vxvm?
What is difference between kernel and os?
What happens when I reset my computer?
What causes a computer not to boot up?
Explain the term shell.
What is the best memory for a laptop?
Which one is the first operating system?
What is the difference between the OS which you use and other OSs?