wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

OS Assignment 3 Deadlock

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

Health and fitness

Blog banner

Network Footprinting in Cybersecurity

Blog banner

semaphores in os

Blog banner

EFT

Blog banner

This Windows 11 encryption bug may cause data damage

Blog banner

Real-time Scheduling - 53003230061

Blog banner

Google classroom

Blog banner

SWEET SHREDDED MANGO CHUNDA (MANGO CHUNDA)

Blog banner

Linux Memory Management

Blog banner

Why Summer Break Is Important for Emotional and Cognitive Growth?

Blog banner

Importance Of Education.

Blog banner

Modern Operating System

Blog banner

PPC Advertising and its Impressive Benefits

Blog banner

The Art Of Getting What You Want In Life....

Blog banner

I/O buffer and its techniques

Blog banner

Brilliant WhatsApp Features Upcoming in 2023

Blog banner

Traveling

Blog banner

Objectives and Functions of Operating System

Blog banner

Memory Management of Operating System(OS)

Blog banner

Service stratergy principles

Blog banner

Why Khari and toast is the ideal Tea Break snack?

Blog banner

Caching windows

Blog banner

Why Consistency in Eating Habits Matters and How Meal Maharaj Makes It Easy

Blog banner

What is online marketing and why do you need to know about it ?

Blog banner

Modern Operating System

Blog banner

Quality check in IT services

Blog banner

MENDELEY

Blog banner

How social media affect

Blog banner

Title: Network Sniffing Techniques: Uncovering the Secrets of Data Transfer

Blog banner

Risk mitigation and management

Blog banner

Full Disk Encryption

Blog banner

Every body is beautiful

Blog banner

Office Lunch Problems in Mumbai and How Tiffin Services Solve Them

Blog banner

Trello ( management software)

Blog banner

Building Confidence in Children Through Daily Routines and Play

Blog banner

Evolution of Operating Sytems

Blog banner

Linux VServer Architecture

Blog banner

Protect yourself from System Hacking with these Simple Steps

Blog banner

Decision Tree: A Diagram Model

Blog banner

Travel: Everything Everywhere!

Blog banner

CyberSecurity Color Wheel

Blog banner

Women’s Mental Health (After Marriage)

Blog banner