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

Meshoo

Blog banner

Cloud Security: Trends and Innovations

Blog banner

Spyware

Blog banner

Full Disk Encryption

Blog banner

Phishing

Blog banner

Practical Implementation of Client Server model using TCP/IP.

Blog banner

COMFORT IS ALL ABOUT FASHION

Blog banner

Developments in Modern Operating Systems

Blog banner

Deadlock and Starvation

Blog banner

Stop Racism

Blog banner

Evolution of Operating system

Blog banner

GraphX:- A graph processing tool

Blog banner

The role of artificial intelligence in automating digital forensic analysis.

Blog banner

Virtual Machine

Blog banner

IT service level agreement

Blog banner

Environmental Management using GIS

Blog banner

Virtualization

Blog banner

Deadlock

Blog banner

CYBER SECURITY CHALLENGES

Blog banner

OLA

Blog banner

CyberSecurity Color Wheel

Blog banner

Access management

Blog banner

RAID

Blog banner

How To Setup DVWA Using XAMPP on Windows

Blog banner

Service Strategy In ITSM

Blog banner

Blockchain Transactions

Blog banner

DATA SCIENCE IN BUSINESS AND MARKETING

Blog banner

Raid and levels of raid.

Blog banner

Building a Better You: Fitness Tips and Inspiration.

Blog banner

How to Prepare Your Child for Their First Day of School?

Blog banner

Basic Security For SOAP Services

Blog banner

Why is it hard to design an Operating Systems ?

Blog banner

Memory management and virtual memory

Blog banner

38_Exploring The Honeynet Project

Blog banner

Memory Management

Blog banner

Blockchain in IoT Applications

Blog banner

Wedding photographer

Blog banner

RAID

Blog banner

Evolution of Operating System

Blog banner

Virtual memory

Blog banner

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

Blog banner

SQL Injection Techniques

Blog banner