wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

OS Assignment 3 Deadlock

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

Kernel Memory Allocation In Linux.

Blog banner

Memory

Blog banner

Dal Bafla Recipe

Blog banner

Modern Operating system

Blog banner

The Role of Cyber Forensics in Criminology

Blog banner

PHONE TECHNOLOGY

Blog banner

SAVE TREES

Blog banner

Multiprocessor and Multicore Organization

Blog banner

E-Cash (Electronic Cash)

Blog banner

Session Hijacking Techniques

Blog banner

Virtual machine

Blog banner

What is thread and alse multithreading

Blog banner

EFT

Blog banner

MODERN OPERATING SYSTEM

Blog banner

security requirements for safe e-payment

Blog banner

All you need to know about “Off-page SEO”

Blog banner

Tracking Emails & Email Crimes

Blog banner

Fault Tolerance

Blog banner

Deadlock

Blog banner

Solving Problems with AI: The Power of Search Algorithms

Blog banner

E-BUSINESS RISK MANAGEMENT

Blog banner

Phishing

Blog banner

Automating OSINT tasks for efficient Cyber Forensics Investigations

Blog banner

Predictive Analysis - Ek Overview

Blog banner

IT Service as as Value Creation

Blog banner

Understanding Gen Z: A Generation Facing Crisis and Potential

Blog banner

From Procrastinator to Performer: How to Beat the Last-Minute Rush

Blog banner

INTRODUCTION TO C#

Blog banner

LTE Technology

Blog banner

Cache Memory

Blog banner

Process Creation

Blog banner

c

Blog banner

Memory management

Blog banner

Deadlock and starvation

Blog banner

Mariana Trench: The deepest depths

Blog banner

Assignment-3

Blog banner

SQL Injection Techniques

Blog banner

Patola Outfits for the Modern Wardrobe: Reviving Indian Handloom in Style

Blog banner

Are Social Media Paid Campaigns Worth It?

Blog banner

What is a Malware ?

Blog banner

Types of Big Data

Blog banner

Threads

Blog banner