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

HubSpot

Blog banner

Cyber Forensics

Blog banner

'Positivity in life'

Blog banner

WHAT IS TWITTER AND HOW DOES IT WORK

Blog banner

Linux Threads:

Blog banner

GUIDE TO GIS

Blog banner

Wedding photographer

Blog banner

NETSUITE

Blog banner

Demystifying Cryptography: A Beginner's Guide

Blog banner

Personalized Movie Recommendations with Data Science

Blog banner

Kernel in Operating System

Blog banner

Microsoft Windows Overview

Blog banner

The Importance of Financial Literacy for College Students

Blog banner

SEIZING DIGITL EVIDENCE AT THE SCENE

Blog banner

Service design process in ITSM

Blog banner

Cloud Security: Trends and Innovations

Blog banner

Types of E-Commerce

Blog banner

Security issues

Blog banner

FREE VERSION OF G-MAIL

Blog banner

Mutual exclusion

Blog banner

Deadlock

Blog banner

Zero-Day Attack

Blog banner

Data Storytelling: Turning Analysis into Business Action

Blog banner

OPERATING SYSTEM

Blog banner

Processes : Process description and control

Blog banner

Embracing the power of Modern Machine UNIX

Blog banner

Deadlock in Operating System

Blog banner

Real-time Scheduling - 53003230061

Blog banner

Zomato's Secret Digital Marketing Techniques!

Blog banner

Constrains in service design

Blog banner

How Does SSO Works

Blog banner

PERSONAL STORIES

Blog banner

Memory Management

Blog banner

Consumer to consumer business mode

Blog banner

Cyber Forensic in the Banking sector

Blog banner

Types of Malware in Cyber Security

Blog banner

Brain wash of social media

Blog banner

Importance of Website

Blog banner

RAID

Blog banner

Process and Threading

Blog banner

Some web vulnerabilities

Blog banner

WomenEmpowerment

Blog banner