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

Docker Framework

Blog banner

Steganography

Blog banner

Modern Operating Systems

Blog banner

Cache Memory in Operating Systems

Blog banner

Raid

Blog banner

How To Secure Operating Systems ?

Blog banner

Memory Management

Blog banner

What is Minting & Mining

Blog banner

STARVATION

Blog banner

Is Dental Phobia Holding You Back? How Happy Gas Changes Everything

Blog banner

Marvel Cinematic Universe

Blog banner

What is Packet Filtering?

Blog banner

Dancing Classes In Mumbai

Blog banner

Emerging threats in cyber Forensics

Blog banner

Modern operating systems (OS)

Blog banner

CSI and Organizational Change

Blog banner

Cyber Forensics in a Ransomware Attack Recovery

Blog banner

Zoho

Blog banner

Computer Security

Blog banner

ADIDAS

Blog banner

Everything You Need for a Perfect Stay in Arcadia, Florida, USA.

Blog banner

INSTAGRAM

Blog banner

Top 4 Places To Stay In Copenhagen

Blog banner

Memory Management

Blog banner

Understanding Regression Analysis

Blog banner

Uniprocessor and Types

Blog banner

Why is online marketing is important in current scenario

Blog banner

Evolution of the Microprocessor ~ Aditya Pai

Blog banner

What's Better : Supervised or Unsupervised Learning

Blog banner

Vulnerability Assessment (Vulnerability Analysis)

Blog banner

Ethical Hacking

Blog banner

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

Blog banner

Article on Team Work

Blog banner

Craziness of dream 11 and how it impacts on our life

Blog banner

Human factor, a critical weak point in the information security of an organization’s IOT

Blog banner

The Role of Cyber Forensics in Addressing Cyber security Challenges in Smart Cities

Blog banner

Paginng In OS

Blog banner

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

Blog banner

CYBERBULLYING: Negative comments!

Blog banner

Processing Crime and Incident Scenes

Blog banner

Is Social Media Marketing The Next Wave Of Digital Marketing?

Blog banner

Uniprocessor scheduling

Blog banner