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

Introduction to Solidity Programming for Blockchain Development

Blog banner

child Labour

Blog banner

Fitness

Blog banner

Cherish the Craft — Essential Tips to Maintain Your Patola Collection

Blog banner

Buffering

Blog banner

IT Service as as Value Creation

Blog banner

Rules and Regulations of Networking: "Standards and Protocols" - Part 1

Blog banner

Digital Footprints An Emerging Dimension of Digital Inequality

Blog banner

File system implementation

Blog banner

INTERNET SECURITY

Blog banner

What is Minting & Mining

Blog banner

What is Anxiety? How to manage Anxiety?

Blog banner

Firewall

Blog banner

Cache Memory

Blog banner

Electronic Evidence in Cyber Forensics

Blog banner

Software

Blog banner

Is Brushing After Eating Damaging Your Teeth? (Fact or Myth)

Blog banner

Veg Mix Pickle

Blog banner

AOL Mail

Blog banner

An Approach To Spyware Detection And Removal

Blog banner

Stop Racism

Blog banner

How to kiss

Blog banner

Understanding the 'Ambiverts'

Blog banner

Method of Evaluating Information Security Level in an Organization

Blog banner

Travel Geek ‘The last $50k in Switzerland’

Blog banner

Virtual memory

Blog banner

10 Survival Tips that might save your life

Blog banner

Fossil Hunting 101 at the Peace River, Arcadia, Florida, USA

Blog banner

Cache memory

Blog banner

Virtual machine

Blog banner

Metasploit

Blog banner

Four Stalls Every Vegetarian Needs To Eat At Outside Vile Parle Station

Blog banner

Safeguarding Your Data: The Importance of Wireless Encryption

Blog banner

Top 10 Logos and their meanings

Blog banner

Riddhi Miyani 53003220140

Blog banner

The New Rules of UI/UX Design Every Website Must Follow in 2026

Blog banner

Mobile Survey

Blog banner

What is time ? The term which has astonished Scientists

Blog banner

Uniprocessor scheduling

Blog banner

What is HTML?

Blog banner

?What Your Dentist Notices The Moment You Sit In The Chair

Blog banner

?What Children Learn Between Activities: The Hidden Learning Moments in a Preschool Day

Blog banner