wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

OS Assignment 3 Deadlock

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

OPERATING SYSTEM

Blog banner

Disk Management

Blog banner

Studying Denial of service attack using DOSHTTP tool

Blog banner

SMARTSHEET MANAGEMENT SYSTEM

Blog banner

The Joy of Giving: How Festivals Teach Children Empathy and Gratitude

Blog banner

Threat from Inside: Educating the Employees Against Cyber Threats

Blog banner

Binary Search Tree (BST) in Data Structure

Blog banner

Race Condition

Blog banner

Zero-Day Attack

Blog banner

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

Blog banner

Dangers of Using Public WiFis

Blog banner

Assignment 2

Blog banner

Data Exfiltration

Blog banner

Hypothesis Testing in Data Science

Blog banner

The role of artificial intelligence in automating digital forensic analysis.

Blog banner

Lifestyle of a photographer

Blog banner

De-Coding Love

Blog banner

Principles of Concurrency

Blog banner

Data Science in Predictive Analytics: Transforming Business Decision-Making

Blog banner

Simple AI Symptom Diagnosis Using LISP – Rule-Based Expert System

Blog banner

Install Ubuntu Easily

Blog banner

Interrupts in OS

Blog banner

Scala - a programming tool

Blog banner

Service Strategy In ITSM

Blog banner

Rain

Blog banner

Malicious softwares

Blog banner

Why is online marketing is important in current scenario

Blog banner

Kernel Modes: User Mode vs. Kernel Mode - 80

Blog banner

10 Interesting facts you should know!!!

Blog banner

Install Ubuntu in Vmware

Blog banner

THE LEGAL ISSUES OF COMPUTER FORENSICS IN INDIA

Blog banner

Cache Memory(142)

Blog banner

Security Issues and Countermeasures

Blog banner

Computer Security

Blog banner

Building a Simple Doctor Appointment System in Common Lisp

Blog banner

Study of Sniffing Tools

Blog banner

Partnership in Learning: How Parent Involvement Shapes a Child’s Early Education

Blog banner

Social Media.

Blog banner

Brain wash of social media

Blog banner

Revolutionary AI Tool: ChatGPT

Blog banner

Brilliant WhatsApp Features Upcoming in 2023

Blog banner

Wrike

Blog banner