wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Deadlocks in Operating System

profile
Heet Chothani
Aug 16, 2024
0 Likes
0 Discussions
94 Reads

A deadlock in an operating system is a situation where a group of processes becomes stuck because each process is waiting for a resource that another process in the group is holding. This creates a cycle where no process can continue because each one is dependent on another process in the set to release a resource.



[Deadlock OS mein tab hota hai jab ek group of processes ek doosre ka wait karte reh jaate hain, kyunki har process ko woh resource chahiye hota hai jo doosra process hold kar raha hai. Deadlock ke liye 4 conditions hoti hain: 


1. **Mutual Exclusion**: Ek resource ek time pe sirf ek process ke paas hota hai.

2. **Hold and Wait**: Process ek resource hold karte hue doosre resources ka wait karta hai.

3. **No Preemption**: Resources forcibly liye nahi ja sakte, bas voluntary release hote hain.

4. **Circular Wait**: Ek process doosre ka, doosra teesre ka, aur teesra pehle wale process ka wait kar raha hota hai.


Isko handle karne ke tareeke:


1. **Prevention**: Deadlock hone wali conditions ko avoid karna.

2. **Avoidance**: Aise resource allocate karna ki deadlock na ho.

3. **Detection and Recovery**: Deadlock ko detect karke usko theek karna.

4. **Ignoring**: Kabhi kabhi deadlock ignore bhi kar diya jata hai, agar woh rare ho.


Short mein, deadlocks ko avoid, detect ya recover karke manage kiya jata hai.]


Comments ()


Sign in

Read Next

Depression

Blog banner

Concurrency:Deadlock and Starvation

Blog banner

“CONSISTENCY” in Social Media Marketing

Blog banner

The Power of Pretend Play: What Role-Playing Teaches Preschoolers

Blog banner

Install Ubuntu in Vmware

Blog banner

HUBSPOT

Blog banner

Pandas Matrix Applications

Blog banner

Why White Bedding Has Become a Hotel Industry Standard?

Blog banner

The art of being alone

Blog banner

What is HTML?

Blog banner

Data Lake

Blog banner

Yoga in INDIA and ABROAD

Blog banner

Decoding Modern Assessment: Why We Look Beyond the Grade Sheet

Blog banner

Article on different management system

Blog banner

Modern operating system

Blog banner

EID UL FITR

Blog banner

Monday. com App

Blog banner

VPN

Blog banner

OS Assignment 3

Blog banner

Elements and Principles of Photography

Blog banner

Oracle Corporation

Blog banner

NETSUITE

Blog banner

Deadlock

Blog banner

Why Dry Fruits Make the Perfect Gifting Choice for Every Occasion?

Blog banner

Meshoo

Blog banner

Zoho

Blog banner

Starvation

Blog banner

The Role of Cyber Forensics in Criminology

Blog banner

Threads

Blog banner

Types of Hackers

Blog banner

Operating system

Blog banner

How Do I Get Rid of My People-Pleasing Behaviour?

Blog banner

Social Engineering

Blog banner

Bitcoin sent using radio waves! No internet!

Blog banner

Gis in agriculture and farming

Blog banner

Deadlock and Starvation

Blog banner

What's Better : Supervised or Unsupervised Learning

Blog banner

Artificial Intelligence (AI)

Blog banner

Modern OS

Blog banner

Understanding Gen Z: A Generation Facing Crisis and Potential

Blog banner

Cyber Forensic in the Banking sector

Blog banner

Why Data Security Is Important

Blog banner