answersLogoWhite

0


Best Answer

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.
User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is deadlock in operating system?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Performing Arts

What is safety algorithms in operating system?

safety algorithm is algo which is used for deadlock avoidance.


What are the differences between deadlock avoidance and deadlock prevention in operating systems?

Deadlock Prevention: o Preventing deadlocks by constraining how requests for resources can be made in the system and how they are handled (system design). o The goal is to ensure that at least one of the necessary conditions for deadlock can never hold. * Deadlock Avoidance: o The system dynamically considers every request and decides whether it is safe to grant it at this point, o The system requires additional apriori information regarding the overall potential use of each resource for each process. o Allows more concurrency. Similar to the difference between a traffic light and a police officer directing traffic. * Deadlock deduction:- Often, neither avoidance nor deadlock prevention may be used. Instead deadlock detection and process restart are used by employing an algorithm that tracks resource allocation and process states, and rolls back and restarts one or more of the processes in order to remove the deadlock. Detecting a deadlock that has already occurred is easily possible since the resources that each process has locked and/or currently requested are known to the resource scheduler or OS. Detecting the possibility of a deadlock before it occurs is much more difficult and is, in fact, generally undecidable, because the halting problem can be rephrased as a deadlock scenario. However, in specific environments, using specific means of locking resources, deadlock detection may be decidable. In the general case, it is not possible to distinguish between algorithms that are merely waiting for a very unlikely set of circumstances to occur and algorithms that will never finish because of deadlock. Deadlock detection techniques include, but is not limited to, Model checking. This approach constructs a Finite State-model on which it performs a progress analysis and finds all possible terminal sets in the model. These then each represent a deadlock.


Explain all types of operating system with diagram?

There are basically four types of operating systems. They include Batch Operating System, Multiprogramming Operating System, Network Operating System and Distributed Operating System.


What are 5 Classification of each operating system?

1. BATCH PROCESSING operating system 2. MULTIPROGRAMMING operating system 3. TIME SHARING operating system 4. REAL TIME operating system 5. DISTRIBUTED operating system


How deadlock deals with operating system?

A deadlock is a situation wherein two or more competing actions are waiting for the other to finish, and thus neither ever does. It is often seen in a paradox like 'the chicken or the egg'. " When two trains approach each other at a crossing, both shall come to a full stop and neither shall start up again until the other has gone.

Related questions

What is safety algorithms in operating system?

safety algorithm is algo which is used for deadlock avoidance.


What is the difference among deadlock avoidance detection and prevention?

Deadlock avoidance involves ensuring that the system never enters a deadlock state by using techniques like resource allocation strategies (e.g., Banker's algorithm) to ensure that resources are allocated in a way that avoids deadlock. Deadlock detection, on the other hand, involves periodically checking the system to see if a deadlock has occurred after it has happened. Deadlock prevention focuses on designing algorithms and protocols in a way that eliminates one of the conditions necessary for deadlock to occur, such as by ensuring that resources are requested in a specific order.


What is deadlock in rdbms?

A deadlock is a situation in which two or more competing actions are each waiting for the other to finish, and thus neither ever does. In an operating system, a deadlock is a situation which occurs when a process enters a waiting state because a resource requested by it is being held by another waiting process, which in turn is waiting for another resource. If a process is unable to change its state indefinitely because the resources requested by it are being used by another waiting process, then the system is said to be in a deadlock.


Deadlock deterioates affect system performance?

how dealocks affects the system


Advantage and disadvantage of deadlock prevention?

Advantage: Deadlock prevention techniques eliminate the possibility of deadlock occurring in a system, ensuring system availability and preventing resource wastage. Disadvantage: Deadlock prevention techniques may lead to reduced system performance or resource utilization, as they often involve overhead in terms of additional checks or restrictions on resource allocation.


What is deadlock what is starvation How do they differ from each other?

A deadlock occurs when two (or more) threads have created a situation where they are all blocking each other. ... Starvation occurs when a scheduler process (i.e. the operating system) refuses to give a particular thread any quantity of a particular resource (generally CPU).


What is false deadlock?

the coordinator conculde incorrectly that a deadlock exist and kills some process --------------------------- Detecting a non existent deadlock in distributed system has been referred as false deadlock and it may occur due to communication delay.. ---->Ashok Paranjothi


What is the difference between deadlock prevention and deadlock avoidance?

DEADLOCK PREVENTION:Preventing deadlocks by constraining how requests for resources can be made in the system and how they are handled (system design).The goal is to ensure that at least one of the necessary conditions for deadlock can never hold.DEADLOCK AVOIDANCE:The system dynamically considers every request and decides whether it is safe to grant it at this point,The system requires additional apriori information regarding the overall potential use of each resource for each process.Allows more concurrency.


What are the differences between deadlock avoidance and deadlock prevention in operating systems?

Deadlock Prevention: o Preventing deadlocks by constraining how requests for resources can be made in the system and how they are handled (system design). o The goal is to ensure that at least one of the necessary conditions for deadlock can never hold. * Deadlock Avoidance: o The system dynamically considers every request and decides whether it is safe to grant it at this point, o The system requires additional apriori information regarding the overall potential use of each resource for each process. o Allows more concurrency. Similar to the difference between a traffic light and a police officer directing traffic. * Deadlock deduction:- Often, neither avoidance nor deadlock prevention may be used. Instead deadlock detection and process restart are used by employing an algorithm that tracks resource allocation and process states, and rolls back and restarts one or more of the processes in order to remove the deadlock. Detecting a deadlock that has already occurred is easily possible since the resources that each process has locked and/or currently requested are known to the resource scheduler or OS. Detecting the possibility of a deadlock before it occurs is much more difficult and is, in fact, generally undecidable, because the halting problem can be rephrased as a deadlock scenario. However, in specific environments, using specific means of locking resources, deadlock detection may be decidable. In the general case, it is not possible to distinguish between algorithms that are merely waiting for a very unlikely set of circumstances to occur and algorithms that will never finish because of deadlock. Deadlock detection techniques include, but is not limited to, Model checking. This approach constructs a Finite State-model on which it performs a progress analysis and finds all possible terminal sets in the model. These then each represent a deadlock.


What is Political Deadlock?

Political deadlock is a situation where competing political parties have equal representation in the political system making it impossible for decisions to be made.


Is Windows 95 an operating system or an operating environment?

XP is a complete operating system, not simply an operating environment.


Explain all types of operating system with diagram?

There are basically four types of operating systems. They include Batch Operating System, Multiprogramming Operating System, Network Operating System and Distributed Operating System.