wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Deadlock Prevention

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

The Dark Web: A Breeding Ground for Cybercriminals – How to Guard Against Threats

Blog banner

Memory Management Techniques

Blog banner

PROCESS CONTROL BLOCK IN OS

Blog banner

What do you mean by online marketing and why do you need to know about it

Blog banner

IoT Evolution

Blog banner

 " Healing of Yoga "

Blog banner

How Harshad Valia International School is nurturing India’s Young Minds?

Blog banner

Respondo Launches Revolutionary Video Discussion App

Blog banner

Traditional Unix System

Blog banner

Malware Detection Techniques for Mobile Devices

Blog banner

OS Assignment 3 Deadlock

Blog banner

Importance of internet

Blog banner

Environmental Management using GIS

Blog banner

Why Skipping Afternoon Meals Affects More Than Just Your Hunger?

Blog banner

INTERNET

Blog banner

Install Ubuntu Easily

Blog banner

5 Powerful Mindset Shifts To Make 2026 Your Breakthrough Year

Blog banner

Cyber Security Standards

Blog banner

THE ACTORS LIFE

Blog banner

evolution of operating system - Disha Parekh

Blog banner

Data Science in Everyday Life (like a phone, shopping cart, or social media icons)

Blog banner

Eating Well With Meal Maharaj on Busy Workdays Without Cooking

Blog banner

Threads

Blog banner

Ubiquitous Computing

Blog banner

Dancing Classes In Mumbai

Blog banner

Vulnerability Assessment (Vulnerability Analysis)

Blog banner

The Psychology of Diversity, Equity & Inclusion: How Inclusive Workplaces Boost Productivity

Blog banner

Search Marketing In 2026: From Keywords To Credibility And User Intent

Blog banner

The Memory Hierarchy

Blog banner

What is Segmentation?

Blog banner

Diwali

Blog banner

Why we should do reading

Blog banner

Jira Software

Blog banner

Firewall / IDS Evasion Techniques

Blog banner

Rain bow

Blog banner

Deadlock

Blog banner

Tiranga - Abbas Haveliwala

Blog banner

Preparing Students for Higher Education: How International Schools Shape Future Success

Blog banner

Apache Kafka

Blog banner

Why Does Hierarchy Still matter in Organizations?

Blog banner

Inventory management software system

Blog banner

Rules and Regulations of Networking: "Standards and Protocols" - Part 1

Blog banner