wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Deadlock

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

Virtual Memory

Blog banner

10 Alien Encounters and Abduction Stories

Blog banner

Android Application Components and Activity Lifecycle

Blog banner

Latest Email Marketing Techniques

Blog banner

HOW CAN SOCIAL MEDIA MAKE YOU HAPPIER?

Blog banner

Environmental Management using GIS

Blog banner

Rules and Regulations of Networking: "Standards and Protocols" - Part 1

Blog banner

Best password managers: Reviews of the top products

Blog banner

Service Strategy principles

Blog banner

Esri India launches Policy Maps.

Blog banner

Indian Culture and Tradition

Blog banner

M commerce

Blog banner

Cache memory

Blog banner

How to setup a professional looking business account on Instagram?

Blog banner

The Benefits of Mixed Learning Activities for Preschoolers

Blog banner

How Puzzles Help Young Children Develop Logical Thinking?

Blog banner

Puri Jagannath temple

Blog banner

Incident management in ITSM

Blog banner

Facebook Shut Down an AI Program!!! Facebook AI bots became Terminators???

Blog banner

Digital Marketing

Blog banner

Save Environment

Blog banner

?Why Does My Breath Still Smell After Brushing?

Blog banner

Data Science in Healthcare: Predicting Diseases

Blog banner

Impact of social media on the human life

Blog banner

Why Seasonal Summer Foods Are Best for Your Health?

Blog banner

MySQL

Blog banner

Memory management

Blog banner

Types of Malware in Cyber Security

Blog banner

Article on team management software

Blog banner

Does School Infrastructure Really Matter For Learning?

Blog banner

Sarasota Polo Club, Myakka City — A Luxury Day Trip from Oak Tree Hotel, Arcadia

Blog banner

Virtual memory

Blog banner

ARTICAL ON MANAGEMENT SYSTEM

Blog banner

Virtual memory in os

Blog banner

Hacking of web server and application

Blog banner

Best Time to Visit Arcadia, Florida & Why Oak Tree Hotel Is Always Ready

Blog banner

Data Security must be your Priority!

Blog banner

Traveling

Blog banner

Memory heirchy

Blog banner

Service Design Principles

Blog banner

Reconnaissance

Blog banner

The Role of Summer Camps in Early Childhood Development

Blog banner