wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

OS Assignment 3 Deadlock

profile
Amit Dubey
Aug 14, 2024
0 Likes
0 Discussions
100 Reads

NAME= DUBEY AMIT KUMAR

SAP ID =53003230143


Deadlock

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

NIKE

Blog banner

File management

Blog banner

PROCESS STATE:

Blog banner

Autonomy Vehicles: Future Ki Gadiya

Blog banner

Fitness

Blog banner

MOBILE DEVICE FORENSIC

Blog banner

Deadlock

Blog banner

Vikrant’s first blog

Blog banner

Traveling

Blog banner

Interrupts in operating system.

Blog banner

Recipe of Paneer Butter Masala

Blog banner

How to lose belly fat

Blog banner

Virtual Machine

Blog banner

Memory Management in Operating System

Blog banner

How covid-19 impacted Social media ad spend forecast globally

Blog banner

Data Security and Data Privacy in Data Science

Blog banner

TRAIN TRAVELING

Blog banner

TRELLO

Blog banner

Ethical Issues in Data Science and Role of Data Science in Smart Cities

Blog banner

Benefits of yoga and meditation

Blog banner

Demystifying Cryptography: A Beginner's Guide

Blog banner

Sensory Play for Toddlers: Boosting Curiosity Through Touch, Sound, and Colour

Blog banner

What is service level Agreement?

Blog banner

Understanding Univariate, Bivariate, and Multivariate Analysis in Data Science

Blog banner

Bharat Maps

Blog banner

Operating system evolution

Blog banner

WAKE UP ITS FOOD o'CLOCK...!!!!!

Blog banner

Deadlocks in operating system

Blog banner

The Role of Teachers in Building a Child’s Confidence

Blog banner

26/11 The Black Day Of Mumbai

Blog banner

The Rich Heritage Of Patola Sarees: Gujarat’s Timeless Weaving Art

Blog banner

Zomato (Income Sources)

Blog banner

Modern operating system

Blog banner

Email Privacy

Blog banner

Electronic Funds Transfer

Blog banner

The evolution of OS

Blog banner

Soak knowledge and level up your intellectual potential!!!

Blog banner

Operating system

Blog banner

ROLE OF THE COMPUTER FORENSICS TOOLS AND TECHNIQUES

Blog banner

Interesting fact about kangaroo.

Blog banner

Goa Trip With Friends

Blog banner

Direct Memory Access

Blog banner