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

COMFORT IS ALL ABOUT FASHION

Blog banner

File system

Blog banner

The IT Service Lifecycle

Blog banner

Game via listing method

Blog banner

Modern OS

Blog banner

What is OS and its overview

Blog banner

OS Assignment 3

Blog banner

Is Social Media Marketing The Next Wave Of Digital Marketing?

Blog banner

Automating OSINT tasks for efficient Cyber Forensics Investigations

Blog banner

Sleep Matters: The Science Behind Toddler Naps

Blog banner

The Role of Fibre in Everyday Nutrition and Digestive Health

Blog banner

Pro-Tips On How To Keep your Foot Healthy

Blog banner

How to feel Happy everyday day

Blog banner

Cyber Forensic in the Banking sector

Blog banner

How Men and Women Process Pain Differently

Blog banner

Ola

Blog banner

Threat management

Blog banner

Continual service improvement vs maintenance phase in IT

Blog banner

How GIS in Agriculture Eliminates Guesswork

Blog banner

Importance of modern technology era

Blog banner

Broken Authentication Attacks

Blog banner

New Horizon Europe project ‘EvoLand’ sets off to develop new prototype services.

Blog banner

Photorec - media recovery tool

Blog banner

Penetration Testing

Blog banner

What are Tenders its various types

Blog banner

Spyware

Blog banner

INTERNET SECURITY

Blog banner

An Overivew Of Cache Memory

Blog banner

Know your Processors!

Blog banner

Artificial Intelligence and I

Blog banner

Instagram Features in 2023 That Will Leave You Stunned!

Blog banner

Im Photographer

Blog banner

What if COVID does not exist!

Blog banner

Virtual Machine's

Blog banner

To travel is to live

Blog banner

Service transistion under difficult conditions

Blog banner

Multithreading in Operating System

Blog banner

Data Visualization – Importance and tools (Tableau, Power BI)

Blog banner

File Management

Blog banner

Decision Tree: A Diagram Model

Blog banner

Virtual Machine

Blog banner

Mumbaicha Dabbawalla

Blog banner