wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Deadlock

profile
Prachiti Borle
Aug 13, 2024
0 Likes
0 Discussions
47 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

A Deep Dive

Blog banner

Data Science in Mental Health Prediction

Blog banner

Importance of Network Security Risk

Blog banner

Principles of Service Operation

Blog banner

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

Blog banner

Jamming Attacks in Network Security: Disrupting Communication Signals

Blog banner

Social Engineering

Blog banner

15 Websites that will make your life easier ...!!!

Blog banner

COMPUTER FORENSICS AND GRAPHICS

Blog banner

Classification Vs Clustring? What's the diffrence?

Blog banner

CYBERPEACEKEEPING: NEW WAYS TO PREVENT AND MANAGE CYBERATTACKS

Blog banner

Some facts about Technology

Blog banner

Traditional Unix System

Blog banner

Basic Security For SOAP Services

Blog banner

The Impact of Tolerances and Wall Thickness on Pipeline Integrity

Blog banner

virtual memory

Blog banner

RAID and It's Levels

Blog banner

MEMORY MANAGEMENT FILE

Blog banner

Business-to-Business

Blog banner

Health is Wealth

Blog banner

Sessions In OS.

Blog banner

ADD A SPICE TO YOUR LIFE.

Blog banner

A-B-C of Networking: Part-2 (Components)

Blog banner

Install Ubuntu in Vmware

Blog banner

Simple Ways of Avoiding Basic Mistakes in Smart Phone Security

Blog banner

Blockchain uses and use cases

Blog banner

Privacy LAWs in IT

Blog banner

What if COVID does not exist!

Blog banner

Password Generator - Lisp

Blog banner

Caching windows

Blog banner

Virtual memory

Blog banner

NETSUITE

Blog banner

Is Social Media Marketing The Next Wave Of Digital Marketing?

Blog banner

gis substation

Blog banner

What is metaverse?

Blog banner

Im Photographer

Blog banner

Direct Memory Access

Blog banner

Security issues

Blog banner

Decoding Modern Assessment: Why We Look Beyond the Grade Sheet

Blog banner

Different memory allocation strategies

Blog banner

TAILS OS

Blog banner

OS Assignment 3 Deadlock

Blog banner