What is deadlock? How do you avoid it?
Answer Posted / sagarika mishra
A set of processes is deadlocked if each process in the set
is waiting for an event that only another process in the
set can cause (including itself).
Waiting for an event could be:
waiting for access to a critical section
waiting for a resource Note that it is usually a non-
preemptable (resource). pre-emptable resources can be
yanked away and given to another.
deadlock avoided by:-
Resource allocation state:
# of available / allocated instances of each type
maximum demand of each process
Safe sequence: For an allocation state, a sequence
hP1; : : : ; Pni is safe if for each Pi, the maximum
resources that
Pi can request can be satised by currently available
resources
+ resources held by all Pj (j < i)
Safe state: System istb in safe state if there exists a safe
sequence consisting of all processes
Is This Answer Correct ? | 18 Yes | 3 No |
Post New Answer View All Answers
Why does kernel panic occur?
Which processor is better amd or intel?
Why is my computer so slow?
What is the next microsoft operating system?
What is the difference between kernel and operating system?
How do you pronounce gnu?
What are compile time Errors?
What is startup repair on my computer?
What should I consider when buying a laptop?
How To Convert A Normal Vg To Big & Scalable Vg And Also Big To Scalable Vg?
Difference Between Jfs & Jfs2?
What is concurrency go?
In the token-passing mutual exclusion algorithm, is the timestamping used to reset clocks and correct drifts, as in the distributed queue algorithms? if not, what is the function of the timestamping?
How To Enable & Disable Quorum?
Can I delete old updates to free up disk space?