wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

OS Assignment 3

profile
Sheetal Mehta
Jul 23, 2024
0 Likes
0 Discussions
93 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

RAID

Blog banner

The launch of UniMap by HERE

Blog banner

Virtual Machine

Blog banner

Virus

Blog banner

Education?

Blog banner

JUSTICE FOR EVERY “BEZUBAAN ANIMAL”

Blog banner

This Windows 11 encryption bug may cause data damage

Blog banner

Note Taker App

Blog banner

HTML vs HTML5

Blog banner

Threats To Computer System

Blog banner

Philadelphia Experiment : Was it real?

Blog banner

"Mahakali cave"

Blog banner

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

Blog banner

Data Lakes: A Key to Modern Data Management

Blog banner

RAID and It's Levels

Blog banner

Service stratergy principles

Blog banner

Cyber Attacks -- Trends Patterns and Security Countermeasures

Blog banner

GIS Applications: How Different Industries are Leveraging Geospatial Data

Blog banner

What is Segmentation?

Blog banner

File management in os

Blog banner

Uniprocessor scheduling

Blog banner

Models of Information Security.

Blog banner

Festive Ethnic Wear Guide: Patola-Inspired Looks for Every Celebration

Blog banner

E-commerce

Blog banner

Data Analytics in Data Science

Blog banner

Apache Spark :- Powerful Data Processing Tool

Blog banner

THE INPACT OF SOCIAL MEDIA!

Blog banner

Operating System

Blog banner

Deadlock and Starvation

Blog banner

Deadlock in Operating System

Blog banner

Electronic Funds Transfer

Blog banner

15 Interesting Facts about India

Blog banner

Kernel in Operating System

Blog banner

DURGA POOJA

Blog banner

Types of E-Commerce

Blog banner

Cyber Bullying - Neeta Vonkamuti

Blog banner

26/11 The Black Day Of Mumbai

Blog banner

Biometric Authentication and Privacy: Balancing Ethical Concerns

Blog banner

Cache memory

Blog banner

The Evolution of the Microprocessor ~ Aditya Pai

Blog banner

Modern Operating System - Khush Bagaria

Blog banner

IP ADDRESS

Blog banner