wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Deadlocks in Operating System

profile
Heet Chothani
Aug 16, 2024
0 Likes
0 Discussions
93 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

THREADS (assignment 1)

Blog banner

Uniprocessor Scheduling

Blog banner

Phishing

Blog banner

TEAMWORK

Blog banner

RAID

Blog banner

Spotify

Blog banner

MY MOST THRILLED TREK ..... BHAIRAVGAD

Blog banner

Device driver

Blog banner

Social engineering in cyber security

Blog banner

How Cyber Forensics use in AI

Blog banner

Understanding Business Layer in Data Science

Blog banner

Capacity management in ITSM

Blog banner

Understanding - Proof of Work!

Blog banner

AI and Data Science: Revolutionizing Industries

Blog banner

Blockchain in IoT Applications

Blog banner

What is M-commerce and how it's work

Blog banner

Web browser forensics:Tools,Evidence collection and analysis

Blog banner

The Bold Digital Marketing Moves That Made Durex India’s Second-Largest Condom Brand

Blog banner

GIS Applications: How Different Industries are Leveraging Geospatial Data

Blog banner

MULTITHREADING:ENHANCEING PERFORMANCE AND EFFICIENCY IN COMPUTING

Blog banner

Mobile Security

Blog banner

Unlocking Success: Mastering Google Ads Strategies

Blog banner

Virtual Memory

Blog banner

Why Festivals Are the Best Classrooms for Young Minds?

Blog banner

Mumbai

Blog banner

Who decides your overthinking, anyway?

Blog banner

INDIAN CHEAPEST COSMETICS BRAND

Blog banner

Social Media Sentiment Analysis

Blog banner

Dos (Denial of service) Attack

Blog banner

Note Taker App

Blog banner

DURGA POOJA

Blog banner

INSTAGRAM

Blog banner

BrainGate Technology

Blog banner

Digital Marketing - The new way to reach end consumer

Blog banner

Modern Teaching Methods: Why Inquiry-based & Experiential Learning Works Best

Blog banner

Linux 94

Blog banner

Virtual Memory - Explaination, Working, Steps

Blog banner

DBMS and various career options related to it.

Blog banner

Benefits of Yoga

Blog banner

How User Data Shapes Personalised Campaigns

Blog banner

semaphores

Blog banner

Virtual memory

Blog banner