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
What is the difference between wget and curl?
How do you reset the bios?
Give some examples of use of thread in a single user multiprocessing system
Which intel core is best?
Explain about memory management in operating system.
What is operating system and its examples?
How do I clean up and speed up my computer?
How do I run a curl command?
what is multitask win95
Can kernel panic be fixed?
Why is it called gnu?
Can I put an ssd in my old computer?
Is the higher the ghz the better?
Will disk cleanup delete my files?
How do you fix a computer that won't start up?