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

Pandas Matrix Applications

Blog banner

Virtual Memory

Blog banner

Top 5 Places To Stay And Visit In Berlin, Germany

Blog banner

Big Data

Blog banner

Virtual Machine's

Blog banner

Telegram and it's features

Blog banner

OS DESIGN CONSIDERATIONS FOR MULTIPROCESSOR

Blog banner

GIS info about Bermuda Triangle

Blog banner

10 Signs your Computer has Virus

Blog banner

Meshoo

Blog banner

Broken Authentication Attacks

Blog banner

Deadlock and starvation in operating system

Blog banner

Evolution of Operating system.

Blog banner

memory management

Blog banner

Introduction to Data Science: Life Cycle & Applications

Blog banner

DATA BREACH CAUSES CHALLENGES PREVENTION AND FUTURE DIRECTIONS

Blog banner

Paid Email

Blog banner

The Power of Teamwork: Learning Collaboration Through Everyday Activities

Blog banner

Mobile Survey

Blog banner

What is thread and alse multithreading

Blog banner

Bit Coins

Blog banner

Introduction my self

Blog banner

Interrupts in OS

Blog banner

Why Extreme Opinions Are Rising: Psychological Insights into Society’s Divides

Blog banner

How User Data Shapes Personalised Campaigns

Blog banner

E-Cash (Electronic Cash)

Blog banner

How to use GIT & GITHUB

Blog banner

What are Virtual Machines

Blog banner

Proton mail

Blog banner

Uniprocessor Scheduling

Blog banner

Blockchain

Blog banner

The Role of Data Provenance and Lineage in Modern Data Science

Blog banner

How can parents support a child’s mental health?

Blog banner

Education?

Blog banner

Mumbai Metro 3

Blog banner

How Sleep Impacts Learning and Behaviour for Toddlers?

Blog banner

Dangers of Using Public WiFis

Blog banner

Models of Information Security.

Blog banner

VIRTUAL MACHINE

Blog banner

5 ways to save money on catering services in Mumbai

Blog banner

10 Unsolved Mysteries all over the world

Blog banner

IT security management

Blog banner