wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

OS Assignment 3 Deadlock

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

IOT- Internet Of Things

Blog banner

Footprinting

Blog banner

MySQL

Blog banner

File management in os

Blog banner

Thumb Sucking: When It’s Normal and When It Becomes a Dental Problem

Blog banner

Session Hijacking Techniques

Blog banner

Rain bow

Blog banner

Disk Scheduling

Blog banner

Threads

Blog banner

Article on Zoho Corporation

Blog banner

Uniprocessor Scheduling

Blog banner

Microsoft Word

Blog banner

Importance of Network Security Risk

Blog banner

12 Principles of Animation

Blog banner

All you need to know about Cassandra

Blog banner

7 Perks of Getting Your Teeth Whitening Done Professionally

Blog banner

Traditional UNIX Scheduling

Blog banner

SWEET SHREDDED MANGO CHUNDA (MANGO CHUNDA)

Blog banner

LEMON PICKLE (NIMBU KA ACHAR)

Blog banner

Health and fitness in technology

Blog banner

Zomato's Secret Digital Marketing Techniques!

Blog banner

Evolution of Operating system

Blog banner

Technical Challenges and Directions for Digital Forensics

Blog banner

What is Amazon?

Blog banner

Short note on expert system

Blog banner

What is thread and multithreading ?

Blog banner

What is M-commerce and how it's work

Blog banner

IS CONVERTING AMBITION INTO PROFESSION?

Blog banner

What is Brute Force Attack? How to defend against it?

Blog banner

PROCESS STATES OF OPERATING SYSTEM

Blog banner

Getting into Anime

Blog banner

STARVATION

Blog banner

Why is online marketing is important in current scenario

Blog banner

AI and Technology- Related Anxiety: Understanding the Psychological Impact of Living in an AI-Driven World

Blog banner

Virtual Memory

Blog banner

Types of Hackers.

Blog banner

Computer Security

Blog banner

LEMON PICKLE SWEET AND MILD HOT

Blog banner

Biometric Authentication and Privacy: Balancing Ethical Concerns

Blog banner

(Input/Output) in os

Blog banner

"The Benefits of Using GIS in Agriculture"

Blog banner

Malware Defense

Blog banner