wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Deadlock

profile
Prachiti Borle
Aug 13, 2024
0 Likes
0 Discussions
55 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

"Audit" In Data Science

Blog banner

Network Security Risks

Blog banner

KAHAWA TEA

Blog banner

Electronic Funds Transfer

Blog banner

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

Blog banner

Decrypting Cryptocurrency: Tracing Transactions in Cyber Investigations

Blog banner

The Art Of Getting What You Want In Life....

Blog banner

What are Tenders its various types

Blog banner

GIS Applications: How Different Industries are Leveraging Geospatial Data

Blog banner

File Management

Blog banner

My First Dream Bike

Blog banner

Efficiency of SQL Injection Method in Preventing E-Mail Hacking

Blog banner

Introduction to GIS

Blog banner

Reclaim Your Bite and Beauty: All About Dental Restorative Treatments

Blog banner

bulk email software

Blog banner

How to Compare Schools Before an Admission Decision

Blog banner

Knowledge Management in Continual Service improvement (CSI)

Blog banner

INTERNET

Blog banner

MAILFENCE

Blog banner

Malware Detection Techniques for Mobile Devices

Blog banner

Top 5 Places To Stay And Visit In Berlin, Germany

Blog banner

Super Garlicky Tomato Soup with Smashed White Beans

Blog banner

The Best Photography Spots in and Around Arcadia, Florida

Blog banner

Principal of concurrency

Blog banner

Virtual memory

Blog banner

'Positivity in life'

Blog banner

The New Classic: Indo Western Patola Outfits for Today’s Woman

Blog banner

Interrupts in operating system.

Blog banner

Perfectionism and High-Performance culture

Blog banner

This too shall pass

Blog banner

Bit Coins

Blog banner

Firewall

Blog banner

Procedure For Corporate High-Tech Investigations

Blog banner

Population

Blog banner

Outlook mail

Blog banner

Lake Manatee State Park: A Peaceful Nature Escape Near Arcadia

Blog banner

Google classroom

Blog banner

From Loom to Luxury: How Patola Elevates Modern Wardrobes

Blog banner

CONCURRENCY: MUTUAL EXCLUSION AND SYNCHRONIZATION-het karia

Blog banner

Data Visualization

Blog banner

The Role of Summer Camps in Early Childhood Development

Blog banner

Self-Healing PPF Explained: How Does It Remove Minor Scratches from Your Car?

Blog banner