wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

OS Assignment 3 Deadlock

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

File System

Blog banner

Emotional Suppression: The Hidden Costs Of Unfelt Feelings

Blog banner

SESSION HIJACKING

Blog banner

Decrypting Cryptocurrency: Tracing Transactions in Cyber Investigations

Blog banner

Disk Management

Blog banner

USES OF WHATSAPP

Blog banner

ACHIEVEMENTS IN OPERATING SYSTEMS

Blog banner

How to invest in Indian Stock Market ? ~ Tutorial 1

Blog banner

EVOLUTION OF MICROPROCESSOR

Blog banner

Memory Management

Blog banner

Deadlock Prevention

Blog banner

Why Moms Are Choosing Customised School Accessories Over Generic Products?

Blog banner

Top 10 Logos and their meanings

Blog banner

“Shot on iPhone” : A campaign by Apple that turned into a prodigy

Blog banner

What is Network Security?

Blog banner

Drawing tips for a beginner

Blog banner

LTE Technology

Blog banner

You'll get to know about Pankaj Negi

Blog banner

File management in os

Blog banner

Interrupts in operating system.

Blog banner

The Khan mehtab transforming the modular switches

Blog banner

Major achievement

Blog banner

social media issue

Blog banner

How return on investment is defined in IT services

Blog banner

The Role of Summer Camps in Early Childhood Development

Blog banner

The Real Reason Patola Outfits Come at a Premium Cost

Blog banner

Beauty of indian railway

Blog banner

Objectives and functions of Operating System...

Blog banner

Embaded operating system

Blog banner

BLOCKCHAIN MACHANISM

Blog banner

Autonomy Vehicles: Future Ki Gadiya

Blog banner

Security requirements for Safe E-Payments

Blog banner

Can a Water Flosser Replace Manual Flossing? Here’s What Dentists Say

Blog banner

How to Encrypt and Decrypt Using GNU PGP

Blog banner

How India made the GIS its Own, and its Use in Infrastructural Developments

Blog banner

The Benefits of Mixed Learning Activities for Preschoolers

Blog banner

Data Mining

Blog banner

I/O Management and Disk Scheduling

Blog banner

Friendship

Blog banner

Pilgrimage at LOC: A privilege and a paradox

Blog banner

Street foods

Blog banner

"Can Lisp do Machine Learning?"

Blog banner