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

Power of words

Blog banner

SmartData Collective: Data Science aur Analytics ki Duniya

Blog banner

WINDOWS I/ O

Blog banner

The Role of cryptography in cyber security

Blog banner

Memory Management

Blog banner

Disk Scheduling

Blog banner

Memory Management

Blog banner

Importance of Website

Blog banner

Service stratergy principles

Blog banner

Bitcoin sent using radio waves! No internet!

Blog banner

Google classroom

Blog banner

Data Security and Data Privacy in Data Science

Blog banner

Linux 94

Blog banner

Demystifying Cryptography: A Beginner's Guide

Blog banner

Working with Sniffers for monitoring network communication

Blog banner

What is metaverse?

Blog banner

Deadlock

Blog banner

Process Creation

Blog banner

A-B-C of Networking: Part-1 (Basics)

Blog banner

Logical and physical address

Blog banner

Fault Tolerance

Blog banner

Virtual Memory

Blog banner

Rain

Blog banner

POVERTY:Causes and solutions to problems

Blog banner

A-B-C of Networking: Part-2 (Components)

Blog banner

How College Events Build Real-world Skills You Can’t Learn From Textbooks

Blog banner

The Role of Teachers in Building a Child’s Confidence

Blog banner

Steganography

Blog banner

Risk factors in service transistion

Blog banner

EMAIL INVESTIGATION

Blog banner

Threading

Blog banner

Why Mumbai Professionals Are Switching Back to Home-Style Tiffin Meals

Blog banner

Incident management in ITSM

Blog banner

Smart Homes | Zigbee Alliance

Blog banner

Linux -V Server Virtual Machine

Blog banner

Save Environment

Blog banner

MODERN OPERATING SYSTEM

Blog banner

The Impact of Cyber Forensics on Corporate Governance and Compliance

Blog banner

GIS info about Bermuda Triangle

Blog banner

Product Discount Calculator

Blog banner

The Difference Between Plaque and Tartar Explained Simply

Blog banner

RSA (Rivest-Shamir-Adelman) Algorithm

Blog banner