wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Deadlock

profile
Meet Kothari
Aug 15, 2024
0 Likes
0 Discussions
61 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

Kernel in Operating System

Blog banner

10 Unsolved Mysteries all over the world

Blog banner

Direct memory access (DMA)

Blog banner

21ST CENTURY PATRIARCHY

Blog banner

What if COVID does not exist!

Blog banner

I/O Buffering

Blog banner

Deadlock

Blog banner

Celebrate Diwali the Delicious Way with Meal Maharaj Catering

Blog banner

Mesh Topology

Blog banner

Virtual Machine

Blog banner

Principal of concurrency

Blog banner

Information of meesho company

Blog banner

The Role of Cyber Forensics in Criminology

Blog banner

Building a Simple Doctor Appointment System in Common Lisp

Blog banner

THE INPACT OF SOCIAL MEDIA!

Blog banner

Dudhasagar waterfall ?

Blog banner

Stories Woven in Silk: The Meaning Behind Patola Motifs

Blog banner

5 ways to save money on catering services in Mumbai

Blog banner

TRELLO

Blog banner

Top 10 Logos and their meanings

Blog banner

What is Spyware? and examples of them.

Blog banner

Why am I never satisfied with my Life?

Blog banner

Population

Blog banner

Deadlock and Starvation

Blog banner

Linux Virtual Machine Process Scheduling

Blog banner

How To Invest In Indian Stock Market @ BSE & NSE ~ Tutorial 3

Blog banner

Hash password! Is it really secured?

Blog banner

How to lose belly fat

Blog banner

Deadlock in operating system

Blog banner

Stephen Hawking : A Remarkable Physicist

Blog banner

Deadlocks in operating system

Blog banner

Importance of internet

Blog banner

Natural Language Processing(NLP)

Blog banner

Virtualization

Blog banner

Landslide Hazard

Blog banner

PODIO

Blog banner

Race Condition in Operating Theatre

Blog banner

Critical success factors

Blog banner

COMFORT IS ALL ABOUT FASHION

Blog banner

Rules and Regulations of Networking: "Standards and Protocols" - Part 1

Blog banner

Deadlock

Blog banner

Navigation With Indian Constellation(NavIC) by ISRO in Geographic Information Systems

Blog banner