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

Mumbai Metro 3

Blog banner

Cache memory

Blog banner

"Mahakali cave"

Blog banner

Deadlock

Blog banner

Concurrency and memory

Blog banner

The Rise of Polo Tourism in the USA: How Travellers Are Blending Luxury Stays with Elite Sports

Blog banner

Simple AI Symptom Diagnosis Using LISP – Rule-Based Expert System

Blog banner

DISK SCHEDULING

Blog banner

Having passion in life

Blog banner

Importance of Morning Routines for Students During the Festive Season

Blog banner

IOT Hacking Techniques

Blog banner

Image Steganalysis in Digital Forensics

Blog banner

10 Unsolved Mysteries all over the world

Blog banner

What Makes a School Safe, Supportive, and Student-Friendly

Blog banner

AN EVENT-BASED DIGITAL FORENSIC INVESTIGATION

Blog banner

Memory Management of Operating System(OS)

Blog banner

Education?

Blog banner

What is thread and multithreading ?

Blog banner

POSITIVE ATTITUDE IN LIFE

Blog banner

Virtual machine and virtualizing

Blog banner

Real Time Scheduling

Blog banner

DEVELOPMENTS LEADING TO MODERN OPERATING SYSTEMS

Blog banner

Swiggi

Blog banner

Deadlocks in operating system

Blog banner

Blockchain Transactions

Blog banner

Article on Fresh Book

Blog banner

Celebrate Diwali the Delicious Way with Meal Maharaj Catering

Blog banner

Business Intelligence v/s Big Data

Blog banner

CoWIN

Blog banner

Deadlock

Blog banner

HUBSPOT

Blog banner

GIS info about Bermuda Triangle

Blog banner

" THE ANSWERS THAT LED INDIAN BEAUTIES TO THE MISS UNIVERSE HISTORIC WIN. "

Blog banner

The Psychology of Diversity, Equity & Inclusion: How Inclusive Workplaces Boost Productivity

Blog banner

Memory Management Techniques

Blog banner

Biometric Authentication and Privacy: Balancing Ethical Concerns

Blog banner

Sagar Parikrama

Blog banner

Linux Memory Management

Blog banner

How to grow followers on Instagram business account?

Blog banner

Exploring Florida Beyond the Obvious Tourist Trails

Blog banner

How storytelling Is Becoming the Secret Weapon of Modern Brands?

Blog banner

How to use open SSL for web server - browser communication

Blog banner