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

Social Engineering Attacks

Blog banner

What is Anxiety? How to manage Anxiety?

Blog banner

HACKING MOBILE PLATFORM

Blog banner

Steps to create an Ubuntu EC2 Instance with GUI in AWS

Blog banner

POVERTY:Causes and solutions to problems

Blog banner

10 Types of Friends in every friend group

Blog banner

Memory Management

Blog banner

Mobile Security

Blog banner

Smartphone Security: Vulnerabilities and Attacks

Blog banner

Security Issues

Blog banner

The Right way of cooking

Blog banner

Multiprocessor and Multicore Organization

Blog banner

Body Image and Low Self Esteem: Understanding the Emotional Impact Beyond Appearance

Blog banner

GEOLOGY AND GEO-TECTONIC FRAME WORK OF WESTERN BASTAR CRATON

Blog banner

Modern operating system

Blog banner

Subnet Masking

Blog banner

A-B-C of Networking: Part-1 (Basics)

Blog banner

Data Mining

Blog banner

INTERRUPTS

Blog banner

E-mail security

Blog banner

IT GOVERNANCE

Blog banner

Data Analytics in Data Science

Blog banner

Threads

Blog banner

Firewall

Blog banner

Evolution of Operating Sytems

Blog banner

Constrains in service design

Blog banner

Interrupts - Types, Working & Importance

Blog banner

The most common internet security threats

Blog banner

IoT Evolution

Blog banner

Understanding Business Layer in Data Science

Blog banner

Veg Mix Pickle

Blog banner

The Role of Cyber Forensics in Addressing Cyber security Challenges in Smart Cities

Blog banner

File Allocation Methods

Blog banner

Virtual Memory

Blog banner

Deadlock in Operating systems

Blog banner

Game via listing method

Blog banner

Why Every Preschooler Learns at Their Own Pace?

Blog banner

How to use open SSL for web server - browser communication

Blog banner

Memory management

Blog banner

CyberSecurity Color Wheel

Blog banner

File management -disha parekh

Blog banner

Monday. com App

Blog banner