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

Mumbai Metro 3

Blog banner

Memory Hierarchy

Blog banner

Deadlock

Blog banner

Social engineering in cyber security

Blog banner

Autonomy Vehicles: Future Ki Gadiya

Blog banner

Evolution of operating system

Blog banner

10 Reasons to Date a South Indian Girl

Blog banner

"The Benefits of Using GIS in Agriculture"

Blog banner

Outlook.com

Blog banner

Hot Mango Pickle (Methiyu)

Blog banner

Navigation With Indian Constellation(NavIC) by ISRO in Geographic Information Systems

Blog banner

Old age lifestyle

Blog banner

EID UL FITR

Blog banner

Memory Management

Blog banner

PPT methodology

Blog banner

Busted : Common Web Security Myths

Blog banner

Direct Memory Access

Blog banner

How to make Pancakes

Blog banner

Deadlock

Blog banner

The Evolution of the Microprocessor ~ Aditya Pai

Blog banner

Deming’s Process

Blog banner

Continual service improvement vs maintenance phase in IT

Blog banner

GIS REMOTE SENSING

Blog banner

Financial Stress and Mental Health

Blog banner

Fault Tolerance

Blog banner

Power of words

Blog banner

Palm Vein Biometric Technology; Contactless vein authentication

Blog banner

Workplace mental health: A Psychological Perspective on Employee Well-being and Organizational Growth

Blog banner

What are NFT s?

Blog banner

Pilgrimage at LOC: A privilege and a paradox

Blog banner

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

Blog banner

Microsoft Windows Overview

Blog banner

Data Warehousing

Blog banner

Nature’s Brush on Silk: The Secret Behind Patola Colours

Blog banner

About myself

Blog banner

Firewall in Computer Network

Blog banner

5 People who claimed to have Time Traveled

Blog banner

Cyber Forensics in a Ransomware Attack Recovery

Blog banner

Internet: The Vast Ocean Of Knowledge.

Blog banner

Interesting fact about kangaroo.

Blog banner

CSI and Organizational Change

Blog banner

Global versus Indian Mental Health Differences

Blog banner