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 run a curl command?
How do you say gnu?
How do you clear cache on a laptop?
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 Lock A User's Account?
What is difference between post and put method?
What is the most powerful computer in the world 2019?
Can you just explain about memory management in iOS?
How do I make a pdf file on my laptop?
Why does kernel panic occur?
How do you start up a computer?
What do you mean by Run time Errors?
Does redhat use yum?
How do I change my local disk?
Which is better curl or wget?