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

"The Benefits of Using GIS in Agriculture"

Blog banner

Fashion marketing in india

Blog banner

Virtual Memory

Blog banner

?Why Social and Emotional Skills Matter More Than ABCs in Early Years?

Blog banner

Operation system

Blog banner

Biometric Authentication Vulnerabilities

Blog banner

Explain Multiprocessors

Blog banner

Overcoming the bedtime brushing Battle with Dr. Roxanne Irani, Dentist in Maroubra

Blog banner

OPERATING SYSTEM

Blog banner

Vulnerabilities in OnePlus Devices

Blog banner

OS assignment 3

Blog banner

On-Page SEO

Blog banner

Smart Homes | Zigbee Alliance

Blog banner

DATA BREACH CAUSES CHALLENGES PREVENTION AND FUTURE DIRECTIONS

Blog banner

Define Instagram.

Blog banner

Bots and Cyber Security

Blog banner

Memory heirachy (Operating system)

Blog banner

Hot Mango Pickle (Methiyu)

Blog banner

Music helps reduce stress

Blog banner

Who decides your overthinking, anyway?

Blog banner

Network Forensics

Blog banner

How Reading Books Shape a Child’s Imagination and Thinking?

Blog banner

I Personally

Blog banner

Benefits of yoga and meditation

Blog banner

Blog name

Blog banner

12 Principles of Animation

Blog banner

Concept and definition of m-commerce

Blog banner

Cache memory

Blog banner

Data Mining

Blog banner

The Role of Fibre in Everyday Nutrition and Digestive Health

Blog banner

PROCESS CONTROL BLOCK IN OS

Blog banner

Jamming Attacks in Network Security: Disrupting Communication Signals

Blog banner

Microsoft Word

Blog banner

Memory Management

Blog banner

Multicore and multithreading 171

Blog banner

Improving defences Proxy Device(defense in depth)

Blog banner

PERSONAL STORIES

Blog banner

Lemon and Chilli Pickle (Limbu Mirchi Achar)

Blog banner

JIRA SOFTWARE

Blog banner

RSA (Rivest-Shamir-Adelman) Algorithm

Blog banner

Malware

Blog banner

Yoga in INDIA and ABROAD

Blog banner