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

Memory heirchy

Blog banner

How Preschool Annual Day Shapes Confidence, Emotions, and Growth

Blog banner

BENIFITS OF YOGA

Blog banner

Session Vulnerabilities

Blog banner

Buffers in Operating Systems

Blog banner

Mail merge

Blog banner

Incorporating Automation into Digital Forensics.

Blog banner

Digital marketing spotlight “Dove’s Real Beauty Campaign”

Blog banner

Linux Threads:

Blog banner

virtual machine

Blog banner

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

Blog banner

The Everyday Parenting Dilemma: Safety Vs Independence

Blog banner

Process Creation

Blog banner

Top 5 Post-Wedding Skin Care Tips

Blog banner

Virtual memory

Blog banner

Basic Security For SOAP Services

Blog banner

How to use open SSL for web server - browser communication

Blog banner

Deadlock

Blog banner

OLA

Blog banner

Hacking of web server and application

Blog banner

Understanding - Proof of Work!

Blog banner

operating system

Blog banner

URL vs Domain

Blog banner

I/O Management and Disk Scheduling

Blog banner

Game via listing method

Blog banner

Importance of modern technology era

Blog banner

Latest Email Marketing Techniques

Blog banner

Direct Memory Access

Blog banner

Cloud Technology and its Implications for Entrepreneurship

Blog banner

6 Digital Marketing Trends You Must Watch Out For In 2022

Blog banner

Elegant fashion style

Blog banner

Smart Shoephone: Is that technology overdose!?

Blog banner

WHAT IS SNAPCHAT AND HOW DOES IT WORK?

Blog banner

Process, process creation and process termination

Blog banner

Memory management and virtual memory

Blog banner

LIFEHACKER

Blog banner

Mumbai

Blog banner

Creating Digitally Signed Document

Blog banner

LINUX

Blog banner

Memory Management

Blog banner

Monday. com App

Blog banner

Virtual memory

Blog banner