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

Video games

Blog banner

Honeypot in cyber security

Blog banner

"Life as a Part-time Student"

Blog banner

Modern operating systems (OS)

Blog banner

Deadlocks in operating system

Blog banner

Data Science & AI

Blog banner

Introduction to GIS

Blog banner

Multiprocessor

Blog banner

Memory heirchy

Blog banner

Distributed Denial of Service (DDoS) attack

Blog banner

GIS in Mapping and landslide alert in Bangladesh

Blog banner

MORDERN UNIX SYSTEM

Blog banner

DIGITAL TECHNOLOGY

Blog banner

The Right way of cooking

Blog banner

Cache Memory

Blog banner

How Laughing Gas Makes Your Dental Visit So Much Easier

Blog banner

Whatsapp Messenger

Blog banner

GIS

Blog banner

This Windows 11 encryption bug may cause data damage

Blog banner

Social Network Analysis: Ek Naya Nazariya Data Science Mein

Blog banner

Race condition

Blog banner

Deadlock in Operating systems

Blog banner

Studying Denial of service attack using DOSHTTP tool

Blog banner

Krishna Rao SAP ID--53003230076

Blog banner

Retiring ISS

Blog banner

Why Inconel 625 and Monel 400 Remain Unbeatable in Refinery Applications?

Blog banner

What is E-commerce

Blog banner

How to Find the Right Therapist For Me?

Blog banner

How to Compare Schools Before an Admission Decision

Blog banner

Data Science in Healthcare: Predicting Diseases

Blog banner

What Function Does SEO Serve in Digital Marketing?

Blog banner

10 Survival Tips that might save your life

Blog banner

Product Discount Calculator

Blog banner

Why Dry Fruits Make the Perfect Gifting Choice for Every Occasion?

Blog banner

OPERATING SYSTEM

Blog banner

How to invest in Indian Stock Market ? ~ Tutorial 1

Blog banner

Latest Email Marketing Techniques

Blog banner

Benefits and drawback of web security.

Blog banner

Memory input output management

Blog banner

Phishing

Blog banner

Knowledge Management in Continual Service improvement (CSI)

Blog banner

M commerce

Blog banner