wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Deadlock Prevention

profile
Shreya Mantry
Aug 15, 2024
0 Likes
0 Discussions
96 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

Service Design Model

Blog banner

Review on Recovering Deleted Files

Blog banner

Information Technology In E- Commerce

Blog banner

Power of words

Blog banner

Lucidchart

Blog banner

Skills An Ethical Hacker Must Have

Blog banner

INTRODUCTION

Blog banner

A True Friendship

Blog banner

Why Should You Schedule Tweets on Twitter?

Blog banner

Why Extreme Opinions Are Rising: Psychological Insights into Society’s Divides

Blog banner

COMMUNICATION

Blog banner

Objectives and Functions of Operating System

Blog banner

Precision-Recall in Data Science

Blog banner

Beauty of indian railway

Blog banner

AI and Cyber Security

Blog banner

Computer security techniques

Blog banner

Direct Memory Access

Blog banner

All you need to know about Cassandra

Blog banner

KEAP MANAGEMENT SYSTEM

Blog banner

Short-Form Video Marketing: Why It's Dominating the Internet

Blog banner

Cache memory

Blog banner

Friendship

Blog banner

Blockchain technology: security risk and prevention

Blog banner

Odoo

Blog banner

Mouth Ulcers: Why Do They Keep Popping Up and How Can You Actually Get Rid of Them?

Blog banner

Top Career Paths After a B.Com Degree in Mumbai: What’s Next for You?

Blog banner

PERT Overview

Blog banner

Data-Driven Prediction of Virtual Item Prices in Online Games

Blog banner

38_Network Sniffing Techniques_SBC

Blog banner

Processing Crime and Incident Scenes

Blog banner

Raid and levels of raid.

Blog banner

Koinex is shutting down and here is how you can withdraw...

Blog banner

Top 5 Post-Wedding Skin Care Tips

Blog banner

Continual service improvement vs maintenance phase in IT

Blog banner

Explain Multiprocessors

Blog banner

OS DESIGN CONSIDERATIONS FOR MULTIPROCESSOR

Blog banner

Starvation

Blog banner

How covid-19 impacted Social media ad spend forecast globally

Blog banner

Data Acquisition in Cyber Forensics

Blog banner

Paging

Blog banner

Expressing and Measuring Risk (Risk Management)

Blog banner

How Social Media Algorithms Will Work in 2026?

Blog banner