Explain the various methods for handling deadlocks, Operating System

Explain the various methods for handling deadlocks.

     A set of processes is deadlocked if every process in the set is waiting for an event that only a process in the set is able to cause. Deadlock be able to occur whenever two or more processes are competing for limited resources and the processes are allowed to acquire and hold a resource (obtain a lock) so preventing others from using the resource while the process waits for other resources.

    There are 4 essential conditions for deadlock to occur:

     1. Mutual exclusion

     2. Hold and wait    

     3. Non-preemption

     4. Circular wait:     

The dissimilar methods used by OS for handling deadlocks are:

a)      Deadlock detection and recovery

b)      Deadlock prevention

c)      Deadlock avoidance

 

Posted Date: 6/21/2013 7:51:06 AM | Location : United States







Related Discussions:- Explain the various methods for handling deadlocks, Assignment Help, Ask Question on Explain the various methods for handling deadlocks, Get Answer, Expert's Help, Explain the various methods for handling deadlocks Discussions

Write discussion on Explain the various methods for handling deadlocks
Your posts are moderated
Related Questions
The following is a dump of a TCP header in hexadecimal format: 00CD0018 00000EF1 00000D5D 502200D1 01BF0010 We need to first split the above hex as such 00 CD 00 18 00 00

Q. Why page sizes always powers of 2? Answer: Recall that paging is executed by breaking up an address into a page and offset number. It is most competent to break the address

What are the requirements for solution of critical section problems? Mutual exclusion : If process p is implementing in its critical section then no other processes can be exe

how response times are reduced by allowing time sharing on top of multiprogramming

shell program for Armstrong number

what is cpu

Front page We need to continue or customization and documentation of our system. Currently our system boots into runlevel 5 and we need it to boot into runlevel 3. For future r

You have been requested by your Senior Engineer to design an Engine Control Unit (ECU) and prepare a report detailing your proposed solution. The client requires a design for a mic

What is a two state process model?   At any time a process is being implementing by a processor or not. Therefore a process may be in Running or not running state. When an Ope

Q. Presume that a system is in an unsafe state. Illustrate that it is possible for the processes to complete their execution without entering a deadlock state. Answer: An unsaf