wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

OS Assignment 3

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

Threading

Blog banner

Deadlock and Starvation

Blog banner

Disk Management

Blog banner

Mobile Survey

Blog banner

BharatPe

Blog banner

Fudgy Tahini Date Chocolate Bars

Blog banner

10 Signs That Prove YOU are his FIRST priority.

Blog banner

Why Soft Skills Matter as Much as Grades?

Blog banner

SQL Injection Techniques

Blog banner

Operating system

Blog banner

Networking 101: How to Build Meaningful Connections in College

Blog banner

OS PROCESS DESCRIPTION AND CONTROL-SARVAGYA JALAN

Blog banner

Real-time Scheduling - 53003230061

Blog banner

Introduction to Data Science: Life Cycle & Applications

Blog banner

How to insert contacts in zoho crm using php

Blog banner

Telegram and it's features

Blog banner

Digital black market or dark net poses a national security threat?

Blog banner

Why Users Leave Your Website in 5 Seconds (And How UI/UX Fixes It)

Blog banner

Service Transition Process in ITSM

Blog banner

Service Operation

Blog banner

THE INPACT OF SOCIAL MEDIA!

Blog banner

How to use open SSL for web server - browser communication

Blog banner

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

Blog banner

Why we fail after giving 100% ?

Blog banner

Image Steganography: Hiding Secrets in Plain Sight

Blog banner

The Art Of Getting What You Want In Life....

Blog banner

HACKING MOBILE PLATFORM

Blog banner

SPAM

Blog banner

The New Role of Social Media Managers: Beyond Posting Content

Blog banner

Reclaim Your Bite and Beauty: All About Dental Restorative Treatments

Blog banner

Introduction to Data Science: Life Cycle & Applications

Blog banner

Memory Management

Blog banner

Jio .....A Revolution ?? ??

Blog banner

5 Stages of Digital Marketing

Blog banner

Data Science & AI

Blog banner

5 People who claimed to have Time Traveled

Blog banner

Note on Process, Process creation and Process termination

Blog banner

Office Lunch Problems in Mumbai and How Tiffin Services Solve Them

Blog banner

Memory Management

Blog banner

Platonic Solids

Blog banner

Technological Advancement

Blog banner

JUSTICE FOR EVERY “BEZUBAAN ANIMAL”

Blog banner