wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Deadlock Prevention

profile
Shreya Mantry
Aug 15, 2024
0 Likes
0 Discussions
91 Reads

DEADLOCK PREVENTION


Deadlock is a situation in computing where two or more processes are unable to proceed because each is waiting for the other to release resources. Strategies used in computer systems in order to ensure that different processes can run smoothly without getting stuck waiting for each other forever is  Deadlock prevention.


The deadlock has the following characteristics:

  1. Mutual Exclusion
  2. Hold and Wait
  3. No Preemption
  4. Circular Wait


Deadlock can be prevented by ruling out any of the above four conditions:


  • Mutual Exclusion:

Make data read only, so that processes can use the data concurrently. We know that many write procedure cannot take place at same time. Thus allow only exclusive users to writee into the file. And let others have access to read only.


  • Hold and Wait:

The hold-and-wait condition can be prevented by requiring all processes to request for required access at a time. While doing so all other processes will be blocked until all requests are granted. This means that other non running processes will have to wait until their turn.


  • No preemption:

if a process requests for certain resources, it must release its original resources first. And if another process is using that resources it needs to release them


  • Circular wait

Each resource will have a numeric order. All processes must follow that order only while requesting resources. No process will be granted if they request for resources have higher priority than they have currently. 


Thus in these ways deadlock can be prevented.



Comments ()


Sign in

Read Next

Respondo Launches Revolutionary Video Discussion App

Blog banner

This too shall pass

Blog banner

Krishna Rao SAP ID--53003230076

Blog banner

Traveling

Blog banner

Cache memory

Blog banner

INTRODUCTION

Blog banner

Exploring Virtual Machines and Computer Forensic Validation Tools

Blog banner

GIS Applications: How Different Industries are Leveraging Geospatial Data

Blog banner

Women’s Mental Health (After Marriage)

Blog banner

Why Peace River Is Florida’s Most Underrated Outdoor Adventure Destination?

Blog banner

Why Inconel 625 and Monel 400 Remain Unbeatable in Refinery Applications?

Blog banner

?Why Social and Emotional Skills Matter More Than ABCs in Early Years?

Blog banner

Security Issues and Countermeasures

Blog banner

Kernel Modes: User Mode vs. Kernel Mode - 80

Blog banner

DURGA POOJA

Blog banner

Service Validation and Testing during the Design Phase

Blog banner

Which Smartphone Company Has the Largest Market Share in India?

Blog banner

Understanding Input Based Keylogger Activation Systems: Risks and Mitigation

Blog banner

Why is online marketing is important in current scenario

Blog banner

A-B-C of Networking: Part-1 (Basics)

Blog banner

Elegant fashion style

Blog banner

Data Lakes: A Key to Modern Data Management

Blog banner

Vulnerabilities in OnePlus Devices

Blog banner

Love is in air.....

Blog banner

I/O Buffering

Blog banner

Human Error: The weakest link in Cybersecurity

Blog banner

Analysis of Digital Evidence In Identity Theft Investigations

Blog banner

A-B-C of Networking: Part-3 (Topology [Ring, Tree, Mesh])

Blog banner

What Your Child Learns During Free Play (That You Might Not Notice)

Blog banner

SPAM

Blog banner

SPEM

Blog banner

NIKE

Blog banner

Random Forests

Blog banner

Types of Malware in Cyber Security

Blog banner

Next time you click on "Remind me later", think twice!

Blog banner

My Favorite Sportsperson

Blog banner

Why Your Child Cries at Drop-Off and How Preschools Handle It Gently

Blog banner

Why is it hard to design an Operating Systems ?

Blog banner

Fashion marketing in india

Blog banner

Hacking Mobile Platforms

Blog banner

Body Image and Low Self Esteem: Understanding the Emotional Impact Beyond Appearance

Blog banner

Cyber Forensics

Blog banner