wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Deadlock

profile
Meet Kothari
Aug 15, 2024
0 Likes
0 Discussions
68 Reads

A deadlock is a situation where a set of processes is blocked because each process is holding a resource and waiting for another resource acquired by some other process. In this article, we will discuss deadlock, its necessary conditions, etc. in detail.

Deadlock is a situation in computing where two or more processes are unable to proceed because each is waiting for the other to release resources. Key concepts include mutual exclusion, resource holding, circular wait, and no preemption.


Consider an example when two trains are coming toward each other on the same track and there is only one track, none of the trains can move once they are in front of each other. This is a practical example of deadlock.

A situation occurs in operating systems when there are two or more processes that hold some resources and wait for resources held by other(s). For example, in the below diagram, Process 1 is holding Resource 1 and waiting for resource 2 which is acquired by process 2, and process 2 is waiting for resource 1.


Comments ()


Sign in

Read Next

Fossil Hunting 101 at the Peace River, Arcadia, Florida, USA

Blog banner

BharatPe

Blog banner

Deadlock

Blog banner

Device driver

Blog banner

I/O Buffering

Blog banner

Celebrate Diwali the Delicious Way with Meal Maharaj Catering

Blog banner

Vulnerabilities in OnePlus Devices

Blog banner

The application udemy

Blog banner

How Does Preschool Help Children Become Better Decision Makers?

Blog banner

Kafka - A Framework

Blog banner

What Your Child Learns During Free Play (That You Might Not Notice)

Blog banner

Evolution of Operating Systems

Blog banner

The War With Cold On Earth

Blog banner

Operating system

Blog banner

Broken Authentication Attacks

Blog banner

Hubspot

Blog banner

Texting is actually better than talking in person

Blog banner

History of Money

Blog banner

Deadlocks in operating system

Blog banner

What is online marketing and why do you need to know about it ?

Blog banner

Memory management

Blog banner

Processes: Process Description and Control.

Blog banner

Threat management

Blog banner

Artificial Intelligence and I

Blog banner

Danger assessment in GIS

Blog banner

SECURITY VULNERABILITIES COUNTERMEASURES IN A SMART SHIP SYSTEM

Blog banner

c

Blog banner

Threads in OS

Blog banner

Mesh Topology

Blog banner

Types of Hackers

Blog banner

Modern Operating System - Khush Bagaria

Blog banner

OS Assignment 3

Blog banner

Race Condition in Operating Theatre

Blog banner

security requirements for safe e-payment

Blog banner

Title: Modern Operating Systems: Powering the Digital Era

Blog banner

Starvation

Blog banner

Travelling blog

Blog banner

Phishing Isn't Getting Smarter — You're Just Seeing More of It

Blog banner

File management in os

Blog banner

"Games and the future"

Blog banner

A Survey of Anti-Forensic Techniques: Methods, Challenges, and Countermeasures

Blog banner

Hacking of web server and application

Blog banner