wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Deadlock

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

Method of Evaluating Information Security Level in an Organization

Blog banner

Evolution of Operating system

Blog banner

Reconnaissance

Blog banner

Multicore CPUs

Blog banner

File management

Blog banner

From Websites To Super Apps For Digital User Experience

Blog banner

Buffer overflow

Blog banner

Introduction to Virtual Memory - 080

Blog banner

Rain bow

Blog banner

OS Assignment 3 Deadlock

Blog banner

Constrained Management in IT

Blog banner

Healthy Indian Dinner Ideas for Better Digestion and Sleep

Blog banner

Some web vulnerabilities

Blog banner

Data-Driven Prediction of Virtual Item Prices in Online Games

Blog banner

Concurrency and Deadlocks

Blog banner

Memory management

Blog banner

Difference Between Classification And Clustering

Blog banner

"Mahakali cave"

Blog banner

7 Perks of Getting Your Teeth Whitening Done Professionally

Blog banner

Raid and levels of raid.

Blog banner

What is a Dumpster Diving Attack?

Blog banner

Memory Management of Operating System(OS)

Blog banner

KASHMIR TRIPS

Blog banner

geographic information system (GIS)

Blog banner

MQTT (MQ Telemetry Transport) in Data Science

Blog banner

A Weekend of Wildlife, Rivers, and Relaxation in Southwest Florida

Blog banner

The Role of Teachers in Building a Child’s Confidence

Blog banner

MOVEMBER

Blog banner

Deadlock and Starvation

Blog banner

Gis in agriculture and farming

Blog banner

Why is online marketing is important in current scenario

Blog banner

OS- Assignnment 1

Blog banner

Incident management in ITSM

Blog banner

Modern Operating System

Blog banner

Direct Memory Access

Blog banner

Challenges of Digital forensics in cloud computing environment

Blog banner

What is E-commerce

Blog banner

A small world of Sockets

Blog banner

Data Science & AI

Blog banner

Latest Email Marketing Techniques

Blog banner

Little Habits, Big Impact: Daily Preschool Routines That Shape the Future

Blog banner

Uniprocessor scheduling

Blog banner