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
Can I factory reset my laptop without a recovery disc?
Dear All, When the patches are installed in the server OS, how will we know that which patch is the latest patch?
What are the Types Of Vg & Explain About Them?
What is the fastest computer operating system?
How much ram do I need for streaming?
How do I run wget?
What is the latest version of google browser?
How do you find out computer specs?
What is a Safe State and what is its use in deadlock avoidance?
How do I compare plugins in notepad ++?
Can we compare two files in notepad ++?
What are Odm Commands.
What is the most powerful processor?
Can I delete old updates to free up disk space?
When I press power button on laptop nothing happens?