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

GEOLOGY AND GEO-TECTONIC FRAME WORK OF WESTERN BASTAR CRATON

Blog banner

Getting into Anime

Blog banner

STARVATION

Blog banner

VIRTUAL MACHINES

Blog banner

Data Security and Data Privacy in Data Science

Blog banner

Dove’s Real Beauty Campaign- Case Study

Blog banner

Modern operating system

Blog banner

OS Assignment 1

Blog banner

HubSpot

Blog banner

Why Should You Schedule Tweets on Twitter?

Blog banner

10 Types of Friends in every friend group

Blog banner

MEMORY FORENSIC ACQUISITION AND ANALYSISOF MEMORY AND ITS TOOLS COMPARISON

Blog banner

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

Blog banner

Review on Recovering Deleted Files

Blog banner

Cyber Security in Data Breaching

Blog banner

Memory input output management

Blog banner

Interrupts - Types, Working & Importance

Blog banner

Explain the concept of ( MIS) Management information systems

Blog banner

Full Disk Encryption on Digital Forensics

Blog banner

SQL Injection Techniques

Blog banner

Unlocking the Secrets: Basic Operations of Computer Forensic Laboratories

Blog banner

What your Favorite colour says about You?

Blog banner

How social media affect

Blog banner

Women empowerment

Blog banner

Dal Bafla Recipe

Blog banner

Cache memory

Blog banner

Studying Denial of service attack using DOSHTTP tool

Blog banner

Deadlock and Starvation

Blog banner

OPERATING SYSTEM

Blog banner

Real Time Scheduling

Blog banner

Importance Of Time

Blog banner

Mumbai famous street food

Blog banner

INTERRUPTS

Blog banner

Life of a 2020-2021 student

Blog banner

Operating System Objectives and Functions

Blog banner

Continual service improvement vs maintenance phase in IT

Blog banner

12 Principles of Animation

Blog banner

OS ASSIGNMENT

Blog banner

operating system

Blog banner

Socket Programming in Java

Blog banner

Go Daddy

Blog banner

MODERN OPERATING SYSTEM

Blog banner