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

Rain

Blog banner

security requirements for safe e-payment

Blog banner

Process and Threading

Blog banner

SQL Injection

Blog banner

A small world of Sockets

Blog banner

IT Service as as Value Creation

Blog banner

Why Is Freshly Cooked Food Better Than Processed Food for Everyday Health?

Blog banner

Why Data Security Is Important

Blog banner

Charcoal, Lemon, and DIY Kits: Which “Viral” Dental Trends Are Actually Dangerous?

Blog banner

10 Amazing facts about Tokyo Ghoul

Blog banner

Are Social Media Paid Campaigns Worth It?

Blog banner

Gamer life

Blog banner

Digital Marketing Ethics Transparency Trust And Brand Reputation digital

Blog banner

A little bit of salt is all the hash needs!

Blog banner

Zero Trust Security Model: Revolutionizing Cybersecurity in the Digital Age

Blog banner

APACHE KAFKA

Blog banner

When Is the Right Time to Enrol My Toddler Into Preschool? NEP

Blog banner

FIREWALL

Blog banner

Memory Management

Blog banner

Studying Denial of service attack using DOSHTTP tool

Blog banner

Security issues in Sensor Networks and gathering admissible evidence in Network Forensics

Blog banner

Basic Security For SOAP Services

Blog banner

OS Assignment 1

Blog banner

Digital black market or dark net poses a national security threat?

Blog banner

Cache Memory(142)

Blog banner

HUBSPOT

Blog banner

How User Data Shapes Personalised Campaigns

Blog banner

DIGITAL TECHNOLOGY

Blog banner

Smartphone Security: Vulnerabilities and Attacks

Blog banner

LinkedIn

Blog banner

Data Visualization in Decision-Making

Blog banner

The Essential Guide to Dynamic Arrays vs. Linked Lists: Which to Use and When ?

Blog banner

LTE Technology

Blog banner

Objectives and Functions of Operating System

Blog banner

Uniprocessor Scheduling

Blog banner

Dekkers Algorithm

Blog banner

Zomato (Income Sources)

Blog banner

Deadlocks in Operating Systems

Blog banner

Raising Emotionally Intelligent Students: The Classroom Beyond Academics

Blog banner

What is the point of living if we can die at any moment of our lives ?

Blog banner

The Secure Software Development Life Cycle (SDLC)

Blog banner

Deadlock and Starvation

Blog banner