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

How India made the GIS its Own, and its Use in Infrastructural Developments

Blog banner

Zero Trust Security Model: Revolutionizing Cybersecurity in the Digital Age

Blog banner

Different types of scam frauds

Blog banner

Binary Search Tree (BST) in Data Structure

Blog banner

Modern operating system

Blog banner

The Power of Cyber Forensic in Solving Crimes

Blog banner

GIS

Blog banner

15 Interesting Facts about India

Blog banner

Safeguarding Your Data: The Importance of Wireless Encryption

Blog banner

Pink sauce pasta

Blog banner

PODIO

Blog banner

Elegant fashion style

Blog banner

The Features of Blockchain

Blog banner

Paginng In OS

Blog banner

Operating System

Blog banner

virtual machines and virtualization

Blog banner

SMARTSHEET

Blog banner

Smartsheet

Blog banner

DBMS and various career options related to it.

Blog banner

Ethical Hacking

Blog banner

Note Taker App

Blog banner

Ethical Issues in Data Science and Role of Data Science in Smart Cities

Blog banner

INTRODUCTION

Blog banner

K-means use cases

Blog banner

The Joy of Giving: How Festivals Teach Children Empathy and Gratitude

Blog banner

THREADS (assignment 1)

Blog banner

Privacy LAWs in IT

Blog banner

Hacking

Blog banner

Understanding Regression Analysis

Blog banner

Classification Vs Clustring? What's the diffrence?

Blog banner

SECURITY RISKS OF REMOTE WORKING

Blog banner

Data Science & AI

Blog banner

MY FIRST BLOG?

Blog banner

Firewall

Blog banner

File System

Blog banner

Deadlock

Blog banner

Direct Memory Access

Blog banner

Evolution of operating system

Blog banner

How GIS in Agriculture Eliminates Guesswork

Blog banner

The Rise of Evil Twin Attacks: A New Kind Of Spoofing Cyberattack

Blog banner

Why we should do reading

Blog banner

R Programming

Blog banner