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

Network Security Risks

Blog banner

security controls

Blog banner

R Programming

Blog banner

Embaded operating system

Blog banner

A-B-C of Networking: Part-3 (Topology [Ring, Tree, Mesh])

Blog banner

ProofHub

Blog banner

FAMILY WHERE LIFE BEGINS....

Blog banner

SWEET SHREDDED MANGO CHUNDA (MANGO CHUNDA)

Blog banner

Animal’s have my heart

Blog banner

Theads

Blog banner

Modern Operating System

Blog banner

Security Issues

Blog banner

Why Time Management Is the Secret to College Success (and How to Master It)

Blog banner

10 Survival Tips that might save your life

Blog banner

Threads in OS

Blog banner

Blockchain uses and use cases

Blog banner

Trello ( management software)

Blog banner

NodeJs

Blog banner

Explain Kernel in OS

Blog banner

virtual machines and virtualization

Blog banner

SEIZING DIGITL EVIDENCE AT THE SCENE

Blog banner

Android Application Components and Activity Lifecycle

Blog banner

A-B-C of Networking: Part-3 (Topology [Bus & Star])

Blog banner

Operating system

Blog banner

Data Science in Healthcare: Predicting Diseases

Blog banner

The Right way of cooking

Blog banner

Jira service Management

Blog banner

Why we fail after giving 100% ?

Blog banner

VPN

Blog banner

What Function Does SEO Serve in Digital Marketing?

Blog banner

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

Blog banner

Microsoft Word

Blog banner

How Men and Women Process Pain Differently

Blog banner

?How long does wisdom tooth pain last?

Blog banner

Virtual Memory - Explaination, Working, Steps

Blog banner

Clustering Techniques

Blog banner

Busted : Common Web Security Myths

Blog banner

Threads Concurrency: Mutual Exclusion and Synchronization

Blog banner

Domain Name System

Blog banner

AI and Data Science: Revolutionizing Industries

Blog banner

10 Reasons to date your best friend

Blog banner

Hacking of web server and application

Blog banner