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

Technical Challenges and Directions for Digital Forensics

Blog banner

Hypothesis Testing in Data Science

Blog banner

Smartsheet

Blog banner

Intrusion Detection System

Blog banner

MEMORY MANAGEMENT REQUIREMENT

Blog banner

Career v/s Job : Choose your passion

Blog banner

Hacking Mobile Platforms

Blog banner

Memory Management

Blog banner

Virtual Machine's

Blog banner

Danger assessment in GIS

Blog banner

Threads

Blog banner

Synchronization

Blog banner

Introduction my self

Blog banner

Anomaly Detection in Behavioral Data Using Machine Learning

Blog banner

CRISP-DM Methodology

Blog banner

LEMON PICKLE (NIMBU KA ACHAR)

Blog banner

EdTech (Education Technology)

Blog banner

Oracle Corporation

Blog banner

What is OS and its overview

Blog banner

Street foods

Blog banner

Cache Memory

Blog banner

Memory Management

Blog banner

Raid

Blog banner

Demystifying Cryptography: A Beginner's Guide

Blog banner

Cross site scripting Attack

Blog banner

“CONSISTENCY” in Social Media Marketing

Blog banner

PPT methodology

Blog banner

VIRTUAL MACHINES

Blog banner

15 Websites that will make your life easier ...!!!

Blog banner

Importance of modern technology era

Blog banner

objectives and function of operating system

Blog banner

Artical on FreshBooks

Blog banner

Title: Modern Operating Systems: Powering the Digital Era

Blog banner

Uniprocessor and Types

Blog banner

Emailing the merger document

Blog banner

Computer Security

Blog banner

IS CONVERTING AMBITION INTO PROFESSION?

Blog banner

Yahoo! mail

Blog banner

SQL Injection Techniques

Blog banner

From Loom to Luxury: How Patola Elevates Modern Wardrobes

Blog banner

Modern Operating System - Khush Bagaria

Blog banner

Virtual Memory

Blog banner