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

Meal Maharaj — 3 CP, 5 CP, 8 CP. Same Love, Different Portions

Blog banner

10 Interesting Facts about Attack on Titan

Blog banner

What is Amazon?

Blog banner

NIKE

Blog banner

Visualization in Data Science

Blog banner

10 Reasons to date your best friend

Blog banner

What is thread and multithreading ?

Blog banner

The IT Service Lifecycle

Blog banner

INSTAGRAM

Blog banner

Different types of e-commerce platforms or advantages and disadvantages

Blog banner

Security Issues and Countermeasures

Blog banner

**THE MUJAWARR: Transforming the Logistics Industry**

Blog banner

Theads

Blog banner

Zomato (Income Sources)

Blog banner

Virtual Memory

Blog banner

Save Girl Child

Blog banner

The Power of Cyber Forensic in Solving Crimes

Blog banner

Python as a tool for Data science task & project

Blog banner

Importance of business process documentation

Blog banner

Android Flashlight Application

Blog banner

OS assignment 3

Blog banner

Music helps reduce stress

Blog banner

Life

Blog banner

Cloud Technology and its Implications for Entrepreneurship

Blog banner

Denial-of-Service and Distributed Denial-of-Service Attack Techniques

Blog banner

Starting Android Activity Using Intent

Blog banner

How to Manage Employees and Tasks in One System (Without Excel)

Blog banner

Supervised and Unsupervised Learning

Blog banner

"Life as a Part-time Student"

Blog banner

Buffers in Operating Systems

Blog banner

Virtual Machine

Blog banner

Deadlock

Blog banner

Why Moms Are Choosing Customised School Accessories Over Generic Products

Blog banner

Understanding Regression Analysis

Blog banner

Memory input output management

Blog banner

Im Photographer

Blog banner

Deadlock

Blog banner

Sagar Parikrama

Blog banner

Security Issues and Countermeasures

Blog banner

Memory management

Blog banner

History of ITIL

Blog banner

Bitcoin sent using radio waves! No internet!

Blog banner