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

Cache Memory

Blog banner

I/O Buffering

Blog banner

OPERATING SYSTEM

Blog banner

Elements and Principles of Photography

Blog banner

Memory management

Blog banner

Deadlock and Starvation

Blog banner

Data Visualization in Decision-Making

Blog banner

MEMORY MANAGEMENT REQUIREMENT

Blog banner

Blog on health and fitness

Blog banner

STARVATION

Blog banner

Vulnerability Assessment

Blog banner

A Review on Data Acquisition in Cyber Forensics

Blog banner

AI & Data Science in Healthcare – Predicting diseases, medical imaging analysis

Blog banner

Human Error: The weakest link in Cybersecurity

Blog banner

Types of Hackers.

Blog banner

Memory management

Blog banner

Virtual Machine's

Blog banner

Threat management

Blog banner

Save Girl Child

Blog banner

Latest Email Marketing Techniques

Blog banner

Memory Management

Blog banner

Exploring the Power of Encase Forensic Tools: Unraveling Digital Mysteries

Blog banner

IO Buffers

Blog banner

Deadlock and starvation in operating system

Blog banner

Subnet Masking

Blog banner

OS ASSIGNMENT

Blog banner

Social Media Marketing Trends 2022

Blog banner

Mariana Trench: The deepest depths

Blog banner

Cache memory

Blog banner

Internet of Things

Blog banner

Modern Operating system

Blog banner

Why Kanye West (Now Ye) is the GOAT: A Legacy Beyond Music

Blog banner

Indian Food

Blog banner

HACKING MOBILE PLATFORM

Blog banner

Artical on FreshBooks

Blog banner

QUANTUM COMPUTING IN SECURITY:A GAME CHANGER IN DIGITAL WORLD

Blog banner

Service stratergy principles

Blog banner

Memory hierarchy

Blog banner

Khau Galli – Vile Parle

Blog banner

Instagram Features in 2023 That Will Leave You Stunned!

Blog banner

Semaphores

Blog banner

Service design process in ITSM

Blog banner