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

10 Interesting facts you should know!!!

Blog banner

Digital Life And Mental Health: A Psychological Perspective in the Modern World

Blog banner

Atlantis - The Lost Island.........

Blog banner

Constrains in service design

Blog banner

Data Acquisition in Cyber Forensics

Blog banner

Data Visualization – Importance and tools (Tableau, Power BI)

Blog banner

Memory Management

Blog banner

What is service level Agreement?

Blog banner

"The Benefits of Using GIS in Agriculture"

Blog banner

Hacking Mobile Platforms

Blog banner

Education: Key to your Prosperity

Blog banner

Introduction to Solidity Programming for Blockchain Development

Blog banner

Music

Blog banner

The Role of cryptography in cyber security

Blog banner

What is Data, Information and Knowledge?

Blog banner

Multicore and Multithreading

Blog banner

VIRTUAL MEMORY

Blog banner

EdTech (Education Technology)

Blog banner

Practical Implementation of Client Server model using TCP/IP.

Blog banner

File Systems in OS.

Blog banner

Data-Driven Prediction of Virtual Item Prices in Online Games

Blog banner

Why Your Daily Meal Routine Matters More Than Occasional Healthy Eating

Blog banner

OPERATING SYSTEM OBJECTIVES AND FAULT TOLERENCE.

Blog banner

differentiate thinking humanly and rationally

Blog banner

Global versus Indian Mental Health Differences

Blog banner

Decision Tree: A Diagram Model

Blog banner

OS Evolution Achievements

Blog banner

Cache memory

Blog banner

THE ACTORS LIFE

Blog banner

RAID and It's Levels

Blog banner

Stop Racism

Blog banner

Loneliness

Blog banner

City2Surf & Spring Fitness Recovery Guide: How Sports Drinks Silently Damage Enamel

Blog banner

Security Issues

Blog banner

26/11 The Black Day Of Mumbai

Blog banner

The launch of UniMap by HERE

Blog banner

Deadlock in Operating System

Blog banner

How To Invest In Indian Stock Market @ BSE & NSE ~ Tutorial 3

Blog banner

10 Reasons why Monica and Chandler are the best couple ever.!!!

Blog banner

Memory Management - operating system

Blog banner

Dangers of Using Public WiFis

Blog banner

Brilliant WhatsApp Features Upcoming in 2023

Blog banner