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

Memory input output management

Blog banner

Power of words

Blog banner

Is Pursuing a Dance Career in India Worth it?

Blog banner

Electronic Evidence in Cyber Forensics

Blog banner

Uniprocessor scheduling

Blog banner

Caching windows

Blog banner

IT Service Continuity Management

Blog banner

Survey of Which Movies Types people are Prefer to Watch in India.

Blog banner

How to use GIT & GITHUB

Blog banner

You Get Everyone, But No One Gets You: The Lonely Side of High Emotional Intelligence

Blog banner

virtual memory

Blog banner

Simple STEM Activities for Toddlers That Spark Curiosity

Blog banner

Risk mitigation and management

Blog banner

Cache memory

Blog banner

Disk Management

Blog banner

KPMG (Klynveld Peat Marwick Goerdeler)

Blog banner

Memory management

Blog banner

Heart Fulness Meditation

Blog banner

Operating system

Blog banner

Tiranga - Abbas Haveliwala

Blog banner

Threads

Blog banner

What Is Experiential Learning and Why Does It Work Better Than Rote Learning?

Blog banner

Models of Information Security.

Blog banner

RAID_142

Blog banner

Rain

Blog banner

Types of Malware in Cyber Security

Blog banner

Web Site

Blog banner

GIS Mapping

Blog banner

Semaphores

Blog banner

Four Stalls Every Vegetarian Needs To Eat At Outside Vile Parle Station

Blog banner

Virtual Machine

Blog banner

Study on cyber and network forensic in computer security management

Blog banner

Reclaim Your Bite and Beauty: All About Dental Restorative Treatments

Blog banner

Protein and Energy: Why Your Workday Diet Needs More of It

Blog banner

Virtual Memory

Blog banner

THREADS (assignment 1)

Blog banner

I/O Management and Disk Scheduling

Blog banner

Cache memory

Blog banner

My First Trek - Sondai, Karjat - Shoaib Malik

Blog banner

Memory Management

Blog banner

OS Assignment-3

Blog banner

Pro-Tips On How To Keep your Foot Healthy

Blog banner