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

NETWORK SECURITY RISKS

Blog banner

Process in OS

Blog banner

The Laws of Karma

Blog banner

Data Storytelling: Turning Analysis into Business Action

Blog banner

memory cache

Blog banner

How social media affect

Blog banner

Buffer overflow

Blog banner

Virtual Memory

Blog banner

Oracle Corporation

Blog banner

Virtual memory

Blog banner

Having passion in life

Blog banner

Operating System

Blog banner

Data-Driven Prediction of Virtual Item Prices in Online Games

Blog banner

Cyber Forensics

Blog banner

Student Grade Calculator in LISP

Blog banner

Introduction to GIS

Blog banner

Shoulders

Blog banner

Article on IT development trends

Blog banner

Consumer to consumer Business model

Blog banner

Navigating the Digital Battlefield: Security Breaches and Effective Countermeasures

Blog banner

How to Avoid being a Victim of Cybercrime

Blog banner

TECHNOLOGY : BOON OR CURSE ?

Blog banner

Cyber Security in Data Breaching

Blog banner

Malware Detection Techniques for Mobile Devices

Blog banner

objectives and function of operating system

Blog banner

Social Network Analysis: Ek Naya Nazariya Data Science Mein

Blog banner

Memory Management - operating system

Blog banner

You'll get to know about Pankaj Negi

Blog banner

Malicious softwares

Blog banner

MACHINE LEARNING

Blog banner

Sleep Matters: The Science Behind Toddler Naps

Blog banner

DEVELOPMENTS LEADING TO MODERN OPERATING SYSTEMS

Blog banner

Blockchain Transactions

Blog banner

Memory

Blog banner

INDIAN CHEAPEST COSMETICS BRAND

Blog banner

Memory Partitioning

Blog banner

Policies for Service Transition

Blog banner

Modern Operating Systems

Blog banner

Major achievement

Blog banner

Deadlock

Blog banner

Memory Management in Operating System

Blog banner

File system

Blog banner