wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

OS Assignment 3

profile
Sheetal Mehta
Jul 23, 2024
0 Likes
0 Discussions
98 Reads

A deadlock occurs when every member of a set of processes is waiting for an event that can only be caused by a member of the set. Often the event waited for is the release of a resource. In the automotive world deadlocks are called gridlocks.

All deadlocks involve conflicting needs for resources by two or more processes. A common example is the traffic deadlock. The following figure shows a situation in which four cars have arrived at a four-way stop intersection at approximately the same time. The four quadrants of the intersection are the resources over which control is needed. In particular, if all four cars wish to go straight through the intersection, the resource requirements are as follows:

 • Car 1, traveling north, needs quadrants a and b.

 • Car 2 needs quadrants b and c.

 • Car 3 needs quadrants c and d.

 • Car 4 needs quadrants d and a

Following are the four strategies used for dealing with deadlocks:-

1. Ignore the problem.

2. Detect deadlocks and recover from them.

3. Avoid deadlocks by carefully deciding when to allocate resources.

4. Prevent deadlocks by violating one of the 4 necessary conditions.


Comments ()


Sign in

Read Next

The Art of Slow Fashion: Why Patola Defines Sustainable Luxury

Blog banner

Fault Tolerance in an Operating System

Blog banner

Riddhi Miyani 53003220140

Blog banner

Deadlock and Starvation

Blog banner

BrainGate Technology

Blog banner

Different Types of Data

Blog banner

Password Generator - Lisp

Blog banner

"Games and the future"

Blog banner

10 Unsolved Mysteries all over the world

Blog banner

Operating system and overviews

Blog banner

File management

Blog banner

Are Social Media Paid Campaigns Worth It?

Blog banner

Twisted world

Blog banner

Why Eating a Variety of Foods Is Important for Complete Nutrition?

Blog banner

VIRTUAL MACHINES

Blog banner

Getting started with Android Studio

Blog banner

INTERNET SECURITY

Blog banner

Decision Tree: A Diagram Model

Blog banner

DIGITAL TECHNOLOGY

Blog banner

Threat from Inside: Educating the Employees Against Cyber Threats

Blog banner

1.1 basic elements

Blog banner

Random Forests

Blog banner

Health and fitness

Blog banner

Evolution of Operating Systems

Blog banner

You'll get to know about Pankaj Negi

Blog banner

Processes : Process description and control

Blog banner

Loneliness

Blog banner

Process State

Blog banner

E-security systems | CCTV

Blog banner

Autonomy Vehicles: Future Ki Gadiya

Blog banner

Privacy in Social Media and Online Services

Blog banner

Why Businesses Are Investing More in Automation than Advertising?

Blog banner

Clarizen

Blog banner

All you need to know about “On-page SEO”

Blog banner

Social Engineering

Blog banner

Deadlock in operating system

Blog banner

Affiliate Marketing V/S Influencer Marketing

Blog banner

Toothache at night? What does this mean, and how to cope with it?

Blog banner

Building a Better You: Fitness Tips and Inspiration.

Blog banner

TECHNOLOGY : BOON OR CURSE ?

Blog banner

HOW CAN SOCIAL MEDIA MAKE YOU HAPPIER?

Blog banner

How to insert contacts in zoho crm using php

Blog banner