wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Deadlocks in Operating System

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

Linux Threads:

Blog banner

How Harshad Valia International School is nurturing India’s Young Minds?

Blog banner

Types of Threads

Blog banner

EID UL FITR

Blog banner

What is service level Agreement?

Blog banner

Memory Management

Blog banner

10 Amazing facts about Tokyo Ghoul

Blog banner

Multiprocessor and Multicore Organization

Blog banner

Esri India launches Policy Maps.

Blog banner

Fitness

Blog banner

CYBER SECURITY CHALLENGES

Blog banner

Instagram Features in 2023 That Will Leave You Stunned!

Blog banner

Webmail

Blog banner

Security Issues and Countermeasures

Blog banner

EdTech (Education Technology)

Blog banner

Introduction my self

Blog banner

Measuring IT Risk

Blog banner

Threads Concurrency: Mutual Exclusion and Synchronization

Blog banner

Security requirements for Safe E-Payments

Blog banner

What is thread and multithreading ?

Blog banner

Beyond the Track: Why the Best Hotel in Arcadia, Florida, Completes Your IMSA Sebring Getaway

Blog banner

TEAMWORK

Blog banner

Data Science in Predictive Analytics: Transforming Business Decision-Making

Blog banner

Buffer Overflow

Blog banner

What is Minting & Mining

Blog banner

Smitten Kitchen Keepers

Blog banner

Beauty of indian railway

Blog banner

Tea, Coffee, Red Wine, and Teeth: A Stain Survival Guide

Blog banner

Cache memory

Blog banner

Top 5 Benefits of Artificial Intelligence

Blog banner

Deadlock

Blog banner

Types of email

Blog banner

Safe Learning Spaces: Why Preschool Environment Matters More Than Ever Today

Blog banner

The Role of Cyber Forensics in Criminology

Blog banner

"The Benefits of Using GIS in Agriculture"

Blog banner

Zero Trust Security Model: Revolutionizing Cybersecurity in the Digital Age

Blog banner

Steganography and Steganalysis

Blog banner

indian premier league

Blog banner

De-Coding Love

Blog banner

Why Progressive Web Apps (PWAs) Are Replacing Traditional Websites

Blog banner

All you need to know about Website Traffic

Blog banner

From Airboat Tours to Fossil Hunting: The Ultimate Arcadia Travel Experience

Blog banner