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
What does kernel panic mean?
What is the difference between concurrency and parallelism?
How do you restart a crashed laptop?
How can I increase storage on my laptop?
Does a disk cleanup delete everything?
How do I make a pdf file on my laptop?
How do I clean up and speed up my laptop?
When I press power button on laptop nothing happens?
Directories can be implemented either as "special files" that can only be accessed in limited ways, or as ordinary data files. What are the advantages and disadvantages of each approach?
How do I clean up and speed up my computer?
What os is used at google?
1) What is an Virtual memory? 2) How do we test API's in both Windows/Linux/Unix? 3) What is an IOCTL? 4) How do you open a char device through API's? 5) What is major num/ minor num? 6) What is the max num for minor num? 7) Who gives you the major / minor numbers? 8) Reverse a string using recursive func. 9) fork/vfork/clone. 10) What does fork returns? 11) What is a zombie process? 12) What happens when a child completes before parent tries to wait for it? 13) Interrupt handlers, top-hdnl....?
Dear All, When the patches are installed in the server OS, how will we know that which patch is the latest patch?
What Command To Take Backup Other Vg's?
Explain the term shell.