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

INTERNET SECURITY

Blog banner

Modern operating systems (OS)

Blog banner

Memory management

Blog banner

MQTT (MQ Telemetry Transport) in Data Science

Blog banner

STARVATION

Blog banner

INTERNET

Blog banner

Personalized Movie Recommendations with Data Science

Blog banner

Impacts of Data Breach On Companies Challenges and Prevention

Blog banner

Rain bow

Blog banner

Career v/s Job : Choose your passion

Blog banner

Child labour

Blog banner

Brilliant WhatsApp Features Upcoming in 2023

Blog banner

Data Visualization in Decision-Making

Blog banner

INTRODUCTION

Blog banner

THE ROLE OF CYBER FORENSICS IN CRIMINOLOGY

Blog banner

File management -disha parekh

Blog banner

Memory Management

Blog banner

Memory Management

Blog banner

Europe Through My Lens

Blog banner

Threads

Blog banner

Service transistion under difficult conditions

Blog banner

Deadlocks in Operating Systems

Blog banner

Buffer Overflow

Blog banner

OPERATING SYSTEM

Blog banner

INTRANET

Blog banner

objectives and function of operating system

Blog banner

Uniprocessor scheduling

Blog banner

Knowledge Management in Continual Service improvement (CSI)

Blog banner

Mumbai Metro 3

Blog banner

The Power of Forensic Watermarking in the Fight Against Content Piracy

Blog banner

Fault Tolerance

Blog banner

Elements and Principles of Photography

Blog banner

Explain the concept of ( MIS) Management information systems

Blog banner

Blockchain

Blog banner

Race Condition

Blog banner

10 Reasons to Date a South Indian Girl

Blog banner

Digital Marketing

Blog banner

INTRODUCTION TO C#

Blog banner

Data Science in Predictive Analytics: Transforming Business Decision-Making

Blog banner

Understanding - Proof of Work!

Blog banner

Disk cache

Blog banner

Virtual Memory

Blog banner