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

Deadlock and Starvation

Blog banner

KAHAWA TEA

Blog banner

memory management

Blog banner

Retiring ISS

Blog banner

Smartphone Security: Vulnerabilities and Attacks

Blog banner

You Get Everyone, But No One Gets You: The Lonely Side of High Emotional Intelligence

Blog banner

Why do you need a personalised bag tag for your kids' school bags?

Blog banner

Dangers of Using Public WiFis

Blog banner

Building a Better You: Fitness Tips and Inspiration.

Blog banner

Krishna Rao SAP ID--53003230076

Blog banner

CyberSecurity Color Wheel

Blog banner

Memory management

Blog banner

Mobile Security

Blog banner

HubSpot

Blog banner

indian premier league

Blog banner

Explaining Buffer Overflow with Example

Blog banner

Principal of concurrency

Blog banner

Buffer overflow

Blog banner

The Role of Fibre in Everyday Nutrition and Digestive Health

Blog banner

5 Things I As A Dentist Would Never Do (And What You Can Learn From It)

Blog banner

DMZ: Your Secret Weapon for Data Security

Blog banner

Domain Name System

Blog banner

Multicore CPUs

Blog banner

GIS info about Bermuda Triangle

Blog banner

A Complete Guide to Satvik Indian Powder Masalas and Their Everyday Uses

Blog banner

Short note on expert system

Blog banner

Uniprocessor Scheduling

Blog banner

The Right way of cooking

Blog banner

Finding Meaning, and Identity : Understanding Existential Concerns and Mental Well-being

Blog banner

Kernel Modes: User Mode vs. Kernel Mode - 80

Blog banner

The Secure Software Development Life Cycle (SDLC)

Blog banner

MEMORY FORENSIC ACQUISITION AND ANALYSISOF MEMORY AND ITS TOOLS COMPARISON

Blog banner

Deadlock and Starvation

Blog banner

MODERN OPERATING SYSTEM

Blog banner

VIRTUAL MACHINE

Blog banner

This too shall pass

Blog banner

How to make Pancakes

Blog banner

Modern OS

Blog banner

Data Storytelling: Turning Analysis into Business Action

Blog banner

Why Data Security Is Important

Blog banner

Cache memory

Blog banner

AI and Technology- Related Anxiety: Understanding the Psychological Impact of Living in an AI-Driven World

Blog banner