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

Fashion design

Blog banner

Memory Management in an Operating System

Blog banner

Virtual Memory

Blog banner

Memory managment

Blog banner

Mumbaicha Dabbawalla

Blog banner

You Get Everyone, But No One Gets You: The Lonely Side of High Emotional Intelligence

Blog banner

Multiprocessor and Multicore Organization

Blog banner

Throttle engine ’Sneak peek into the future’

Blog banner

Define Instagram.

Blog banner

Health is Wealth

Blog banner

Understanding Mobile Device Forensics

Blog banner

Steps to create an Ubuntu EC2 Instance with GUI in AWS

Blog banner

Data Science in Everyday Life (like a phone, shopping cart, or social media icons)

Blog banner

Deadlock

Blog banner

Severe landslides continue to cause concern in Joshimath, Uttarakhand

Blog banner

Record Blocking

Blog banner

Philadelphia Experiment : Was it real?

Blog banner

Virtual memory

Blog banner

Best Time to Visit Arcadia, Florida & Why Oak Tree Hotel Is Always Ready

Blog banner

Loneliness

Blog banner

Random Forests

Blog banner

Social Engineering

Blog banner

What is thread and alse multithreading

Blog banner

LISP - Library Management System

Blog banner

Answer

Blog banner

IT RISK

Blog banner

" THE ANSWERS THAT LED INDIAN BEAUTIES TO THE MISS UNIVERSE HISTORIC WIN. "

Blog banner

IT GOVERNANCE

Blog banner

Atlantis - The Lost Island.........

Blog banner

How to Encrypt and Decrypt Using GNU PGP

Blog banner

PROCESS CONTROL BLOCK IN OS

Blog banner

38_Network Sniffing Techniques_SBC

Blog banner

RAID - LEVELS OF RAID

Blog banner

Models of Information Security.

Blog banner

What makes Nugget RC Racing Florida’s Most Exciting Racing Events?

Blog banner

undefined

Blog banner

Denial-of-Service and Distributed Denial-of-Service Attack Techniques

Blog banner

What is Vishing?

Blog banner

Starvation

Blog banner

Linux

Blog banner

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

Blog banner

OS Assignment-3

Blog banner