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

Online Games

Blog banner

Importance of self defence for girls

Blog banner

Blog on health and fitness

Blog banner

What is Segmentation?

Blog banner

Studying Denial of service attack using DOSHTTP tool

Blog banner

Workplace mental health: A Psychological Perspective on Employee Well-being and Organizational Growth

Blog banner

THE INPACT OF SOCIAL MEDIA!

Blog banner

KASHMIR TRIPS

Blog banner

Pro-Tips On How To Keep your Foot Healthy

Blog banner

ITIL Version 3 and 4 differenciation?

Blog banner

Article on Fresh Book

Blog banner

?How long does wisdom tooth pain last?

Blog banner

Ganpati Special: Exotic 51 Modak flavours by Mahavir Dryfruits

Blog banner

Memory input output management

Blog banner

MY MOST THRILLED TREK ..... BHAIRAVGAD

Blog banner

Importance of Network Security Risk

Blog banner

KEAP MANAGEMENT SYSTEM

Blog banner

Subnet Masking

Blog banner

Virtual memory

Blog banner

Direct Memory Access

Blog banner

IO Buffers

Blog banner

Digital Marketing - The new way to reach end consumer

Blog banner

Image Steganography: Hiding Secrets in Plain Sight

Blog banner

ARTICLE ON WRIKE CORPORATION

Blog banner

What is a Dumpster Diving Attack?

Blog banner

Koinex is shutting down and here is how you can withdraw...

Blog banner

Memory Management in Operating System

Blog banner

Blockchain technology: security risk and prevention

Blog banner

Message Passing in OS

Blog banner

How Laughing Gas Makes Your Dental Visit So Much Easier

Blog banner

Gen Z buys by seeing things online, and why you, as a new company, need to be online

Blog banner

Modern operating system

Blog banner

Deadlock

Blog banner

26/11 The Black Day Of Mumbai

Blog banner

SMARTSHEET MANAGEMENT SYSTEM

Blog banner

GIS REMOTE SENSING

Blog banner

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

Blog banner

'C', 'C++' and 'Java': Head-to-Head

Blog banner

Outlook mail

Blog banner

What your Favorite colour says about You?

Blog banner

Why Does Hierarchy Still matter in Organizations?

Blog banner

Cache memory

Blog banner