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

Types of Big Data

Blog banner

ART AND CULTURE OF VRINDAVAN

Blog banner

Direct Memory Access

Blog banner

Objectives and Functions of Operating System

Blog banner

Deadlock

Blog banner

IT Service as as Value Creation

Blog banner

PERSONAL STORIES

Blog banner

Memory Management in Operating System

Blog banner

Visualization in Data Science

Blog banner

Thumb Sucking: When It’s Normal and When It Becomes a Dental Problem

Blog banner

SQL Injection Techniques

Blog banner

1.1 basic elements

Blog banner

virtual machines and virtualization

Blog banner

Deadlock in Operating systems

Blog banner

Importance of education

Blog banner

10 Types of Friends in every friend group

Blog banner

Memory Management in Operating System

Blog banner

ARTICAL ON MANAGEMENT SYSTEM

Blog banner

WHAT IS TWITTER AND HOW DOES IT WORK

Blog banner

GIS Topography

Blog banner

Travel: Everything Everywhere!

Blog banner

Understanding Toddler Tantrums: What They Really Mean

Blog banner

Depression

Blog banner

Simple Ways of Avoiding Basic Mistakes in Smart Phone Security

Blog banner

Data Exfiltration

Blog banner

Hey Aryan here

Blog banner

Internet of Things and cyber security

Blog banner

Smart Shoephone: Is that technology overdose!?

Blog banner

Wrike

Blog banner

Self-love: Being the reason of your own smile

Blog banner

Title: Network Sniffing Techniques: Uncovering the Secrets of Data Transfer

Blog banner

Memory management

Blog banner

Review on Cyber Forensics and its Analysis Tools

Blog banner

Process State

Blog banner

SECURITY RISKS OF REMOTE WORKING

Blog banner

Have You Explored India Yet?

Blog banner

Getting into Anime

Blog banner

Philadelphia Experiment : Was it real?

Blog banner

LTE Technology

Blog banner

GOOGLE

Blog banner

Mumbai famous street food

Blog banner

Instagram

Blog banner