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

Virtual memory

Blog banner

Segmentation and paging concept

Blog banner

Memory Management

Blog banner

All you need to know about “Off-page SEO”

Blog banner

ARTICLE ON WRIKE CORPORATION

Blog banner

Lucidchart

Blog banner

Deadlock

Blog banner

Cache memory

Blog banner

Child labour

Blog banner

Email Privacy

Blog banner

Concurrency and Deadlocks

Blog banner

Types of Viruses

Blog banner

Introduction my self

Blog banner

Virtual Memory - Explaination, Working, Steps

Blog banner

Topic: Sessions in Operating system

Blog banner

How I use google in my daily life

Blog banner

GIS Applications: How Different Industries are Leveraging Geospatial Data

Blog banner

Multiprocessor scheduling

Blog banner

Travelling blog

Blog banner

note taker app

Blog banner

Simple Ways of Avoiding Basic Mistakes in Smart Phone Security

Blog banner

K-means use cases

Blog banner

Android Flashlight Application

Blog banner

The Right way of cooking

Blog banner

The Impact of Cyber Forensics on Corporate Governance and Compliance

Blog banner

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

Blog banner

Rock, Paper, Scissors Game in Common Lisp

Blog banner

GEOLOGY AND GEO-TECTONIC FRAME WORK OF WESTERN BASTAR CRATON

Blog banner

Different types of e-commerce platforms or advantages and disadvantages

Blog banner

Monday. com App

Blog banner

File Sharing

Blog banner

Predictive Analytics: How Data Science Predicts Trends(Weather ,Stock Market,Sales Forecasting ).

Blog banner

OS Assignment 3 Deadlock

Blog banner

Memory Management

Blog banner

This too shall pass

Blog banner

PPC Advertising and its Impressive Benefits

Blog banner

How Reading Books Shape a Child’s Imagination and Thinking?

Blog banner

operating system

Blog banner

Computer Forensics and its Impact in Business Environment

Blog banner

SECURITY RISKS OF REMOTE WORKING

Blog banner

Know your Processors!

Blog banner

Platonic Solids

Blog banner