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

Service transition principles

Blog banner

GIS Topography

Blog banner

Vulnerability Assessment

Blog banner

Landslide Hazard

Blog banner

A Review on Data Acquisition in Cyber Forensics

Blog banner

Cloud Computing

Blog banner

TOP 5 GAMING GADGETS (2024)

Blog banner

Shoulders

Blog banner

GIS REMOTE SENSING

Blog banner

Deadlock and starvation

Blog banner

The Right way of cooking

Blog banner

Deadlock

Blog banner

Zero-Day Attack

Blog banner

Race Conditions

Blog banner

Old age lifestyle

Blog banner

Service Strategy principles

Blog banner

Can ChatGPT Answer All My Questions About Life?

Blog banner

A Happier Workplace Starts with Healthy Lunches by Meal Maharaj

Blog banner

Memory Partitioning

Blog banner

What is a geographic information system (GIS)?

Blog banner

Deadlock and Starvation in an Operating System

Blog banner

Evolution of Operating System

Blog banner

I/O Management and Disk Scheduling

Blog banner

Virtual memory

Blog banner

objectives and functions of operating system

Blog banner

Kernel Memory Allocation In Linux.

Blog banner

Computer Security

Blog banner

COMFORT IS ALL ABOUT FASHION

Blog banner

FAMILY WHERE LIFE BEGINS....

Blog banner

Veg Mix Pickle

Blog banner

Utilizing Data-Hiding and Retrieval Techniques in Cyber Forensics

Blog banner

Importance of modern technology era

Blog banner

Article on Fresh Book

Blog banner

Indian Culture and Tradition

Blog banner

Cache Memory in Operating Systems

Blog banner

DNS Cache

Blog banner

The Power of Cyber Forensic in Solving Crimes

Blog banner

Answer

Blog banner

Four Stalls Every Vegetarian Needs To Eat At Outside Vile Parle Station

Blog banner

Blockchain Transactions

Blog banner

Starvation

Blog banner

CoWIN

Blog banner