wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Deadlock

profile
Prachiti Borle
Aug 13, 2024
0 Likes
0 Discussions
45 Reads

What Is a Deadlock?
In computing, a deadlock is a situation wherein two or more processes are in a difficult or embarrassing predicament. Think of this: Each process is holding on to one resource (like a stubborn squirrel clutching its acorn), and they are all waiting for another resource that happens to be held by someone else. It is like a cosmic game of "I will wait if you will wait." ????

The basic concepts underlying deadlocks are

1 Mutual Exclusion: Resources are possessive little creatures. Take a printer, for example. It insists on serving just one set of print jobs at any time. That is mutual exclusion—no more than one process is allowed to use a resource at any given time.
2 Hold and Wait: Processes can be pretty demanding. They hold on to one resource (like a toddler clings to their favorite toy) while simultaneously holding on and waiting on another resource. It is like saying, "I'm not letting go of this crayon until I get that cookie!"
3 No Preemption: Resources are pretty stubborn. Once a process gets its mitts on something, it won't let it go unless it decides to release it voluntarily. No snatching is allowed!
4 Circular Wait: Imagine a circle of processes each of which is waiting for the process on the left to pass a talking stick. If the stick is never passed, they are in a circular wait. In more detail, with deadlock, it's musical chairs when the music stops, but all are too polite to take a chair.

There are three ways to handle deadlock

  • Deadlock Prevention or Avoidance
  • Deadlock Recovery
  • Deadlock Ignorance

Necessary Conditions of Deadlock

* Mutual Exclusion: Resources are loved.
* Hold and Wait: Each process holds resources.
* No Preemption: Resources can't be forcibly taken away.
* Circular Wait: The waiting game is circular.


Comments ()


Sign in

Read Next

The Power of Forensic Watermarking in the Fight Against Content Piracy

Blog banner

MoSCoW METHOD IN DATA SCIENCE

Blog banner

BrainGate Technology

Blog banner

Women empowerment

Blog banner

Excel records

Blog banner

Microsoft powerpoint presentation

Blog banner

KASHMIR TRIPS

Blog banner

Blockchain technology: security risk and prevention

Blog banner

Satellite Based Positioning

Blog banner

NETSUITE

Blog banner

Full Disk Encryption

Blog banner

GraphX:- A graph processing tool

Blog banner

Virtual Machine

Blog banner

Race Condition

Blog banner

12 Principles of Animation

Blog banner

Lucidchart

Blog banner

Intrusion Detection System

Blog banner

Direct Memory Access

Blog banner

Security requirements for Safe E-Payments

Blog banner

Cyber Forensics

Blog banner

Facebook marketing

Blog banner

Dekkers Algorithm : Ensuring Safe Process Synchronization

Blog banner

Deadlock in Operating System

Blog banner

How covid-19 impacted Social media ad spend forecast globally

Blog banner

Fashion design

Blog banner

Session Hijacking

Blog banner

Virtual Machine's

Blog banner

A Traveller’s Guide to Offbeat Places in Arcadia, Florida

Blog banner

FREE VERSION OF G-MAIL

Blog banner

Security in Operating Systems

Blog banner

Annual Day Preparation for Toddlers: What Helps and What to Avoid

Blog banner

MORDERN UNIX SYSTEM

Blog banner

Security and E-mail

Blog banner

What is Email? Uses of Emails

Blog banner

A little bit of salt is all the hash needs!

Blog banner

From Procrastinator to Performer: How to Beat the Last-Minute Rush

Blog banner

Diwali

Blog banner

WomenEmpowerment

Blog banner

History of ITIL

Blog banner

Why Summer Break Is Important for Emotional and Cognitive Growth?

Blog banner

Gamer life

Blog banner

Record Blocking

Blog banner