wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

OS Assignment 3 Deadlock

profile
Amit Dubey
Aug 14, 2024
0 Likes
0 Discussions
102 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

Article on IT development trends

Blog banner

The seven-step improvement process

Blog banner

Modern Operating System - Khush Bagaria

Blog banner

What is Spyware?

Blog banner

Yoga in INDIA and ABROAD

Blog banner

The 60-Minute Window: What to Do (And What NOT to Do) When You Knock Out a Tooth

Blog banner

Big Data Architecture

Blog banner

Microsoft powerpoint presentation

Blog banner

What is the point of living if we can die at any moment of our lives ?

Blog banner

Fashion design

Blog banner

File management in os

Blog banner

Dr. Venkadavarahan

Blog banner

Memory Management Techniques

Blog banner

Deadlocks in Operating System

Blog banner

The IT Service Lifecycle

Blog banner

Zero-Day Attack

Blog banner

NodeJs

Blog banner

Automating OSINT tasks for efficient Cyber Forensics Investigations

Blog banner

Brilliant WhatsApp Features Upcoming in 2023

Blog banner

How Cyber Forensics help prevent Crimes

Blog banner

Financial Fraud Detection

Blog banner

MODERN OPERATING SYSTEM

Blog banner

FREE VERSION OF G-MAIL

Blog banner

USES OF WHATSAPP

Blog banner

Deadlock

Blog banner

Strengthening Active Directory Security

Blog banner

Stay Close To Adventure In Arcadia, Florida At Oak Tree Hotel

Blog banner

MPL and how its effects?

Blog banner

"Can Lisp do Machine Learning?"

Blog banner

BrainGate Technology

Blog banner

CONCURRENCY

Blog banner

EVOLUTION OF THE MIRCOPROCESSOR

Blog banner

Microsoft Word

Blog banner

Operating Systems

Blog banner

Understanding Toddler Tantrums: What They Really Mean

Blog banner

Deadlocks

Blog banner

Modern Operating System - Suren Kotian

Blog banner

File management

Blog banner

Consumer to consumer Business model

Blog banner

S-Tool : Steganography

Blog banner

OS Assignment 3

Blog banner

Data Exfiltration

Blog banner