wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Deadlock

profile
Vansh Dedhia
Aug 13, 2024
0 Likes
0 Discussions
106 Reads

A deadlock in an operating system occurs when a set of processes become stuck in a state where each process is waiting for a resource that another process in the set is holding. As a result, none of the processes can proceed, and they all remain in a state of perpetual waiting.

 

Deadlock Recovery:

When a deadlock occurs, the system must recover from it to ensure that the processes can eventually complete. There are several methods for deadlock recovery:

 

1. Process Termination:

   - Abort All Deadlocked Processes: The simplest solution is to terminate all the processes involved in the deadlock. This guarantees recovery but can result in significant work being lost.

   - Abort One Process at a Time: A more refined approach is to abort processes one by one until the deadlock is resolved. The choice of which process to terminate can be based on factors such as the process's priority, the amount of work it has done, or the resources it holds.

 

2. Resource Preemption:

   - Preempt Resources: Temporarily take resources away from some processes and give them to others. This can break the circular wait condition.

   - Rollback: Roll back one or more processes to an earlier safe state and restart them, allowing the system to avoid deadlock. This method requires the system to maintain sufficient information about the states of processes.

 

3. Process Migration:

   - Move Processes to Different Systems: In distributed systems, processes can be moved to other systems where the required resources are available. This approach can help avoid deadlock but requires advanced system capabilities.

 

4. Combination Methods:

   - Sometimes, a combination of process termination and resource preemption might be used to resolve deadlocks more effectively.

 

The choice of deadlock recovery method depends on the specific system and the criticality of the processes involved.


Comments ()


Sign in

Read Next

38_Network Sniffing Techniques_SBC

Blog banner

MORDERN UNIX SYSTEM

Blog banner

Intrusion Detection System

Blog banner

What is Anxiety? How to manage Anxiety?

Blog banner

Data Mining

Blog banner

Discover The Top 3 Places To Stay in London

Blog banner

Policies for Service Transition

Blog banner

Os(Computer security threats)

Blog banner

Anomaly Detection in Behavioral Data Using Machine Learning

Blog banner

Be you

Blog banner

Memory Management

Blog banner

PERSONAL STORIES

Blog banner

The Role of Frontline Managers in Driving Workplace Performance and Customer Satisfaction

Blog banner

MODERN OPERATING SYSTEM

Blog banner

SQL Injection Techniques

Blog banner

Session Vulnerabilities

Blog banner

BrainGate Technology

Blog banner

Zoho

Blog banner

Service Validation and Testing during the Design Phase

Blog banner

Different types of scam Fraud

Blog banner

Ransomware

Blog banner

THREADS (assignment 1)

Blog banner

Broken Authentication Attacks

Blog banner

Linux Threads:

Blog banner

Royal enfield

Blog banner

Critical success factors

Blog banner

Interrupts - Types, Working & Importance

Blog banner

Virtual Memory

Blog banner

Firewall

Blog banner

Deadlock and Starvation

Blog banner

Multiprocessor and Multicore Organization

Blog banner

RAID and It's Levels

Blog banner

Web browser forensics:Tools,Evidence collection and analysis

Blog banner

Fault Tolerance in an Operating System

Blog banner

A Short History of GIS

Blog banner

Process and Threading

Blog banner

Platonic Solids

Blog banner

The Power of Cyber Forensic in Solving Crimes

Blog banner

Service design process in ITSM

Blog banner

Interesting fact about kangaroo.

Blog banner

Exploring the Power of Encase Forensic Tools: Unraveling Digital Mysteries

Blog banner

RAID

Blog banner