wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

OS Assignment 3

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

Assignment-3

Blog banner

Why Festivals Are the Best Classrooms for Young Minds?

Blog banner

Deadlock and Starvation

Blog banner

Use case of K-means clustering

Blog banner

Social Network Analysis: Ek Naya Nazariya Data Science Mein

Blog banner

This is my first blog.

Blog banner

operating system

Blog banner

Paging

Blog banner

Virtual memory

Blog banner

Service Operations in ITSM

Blog banner

How Schools Can Reduce Exam Stress in Students?

Blog banner

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

Blog banner

The IT Service Lifecycle

Blog banner

Dal Bafla Recipe

Blog banner

Esri India launches Policy Maps.

Blog banner

Online Education

Blog banner

Why Travellers from Miami & Orlando Are Visiting Arcadia for Weekend Getaways?

Blog banner

Time Series Analysis

Blog banner

Who decides your overthinking, anyway?

Blog banner

Beatbox

Blog banner

Sage

Blog banner

A-B-C of Networking: Part-1 (Basics)

Blog banner

Data is an asset and it is your responsibility!

Blog banner

Cloud Computing

Blog banner

A Survey of Anti-Forensic Techniques: Methods, Challenges, and Countermeasures

Blog banner

Multiprocessor and Multicore Organization

Blog banner

Friendship

Blog banner

Process, process creation and process termination

Blog banner

Smitten Kitchen Keepers

Blog banner

Rules and Regulations of Networking: "Standards and Protocols" - Part 1

Blog banner

Process Description

Blog banner

Buffer Overflow

Blog banner

Quality check in IT services

Blog banner

MEMORY MANAGEMENT REQUIREMENT

Blog banner

How Reading Books Shape a Child’s Imagination and Thinking?

Blog banner

Privacy-Enhancing Computation Techniques

Blog banner

Process and Threading

Blog banner

Solving Problems with AI: The Power of Search Algorithms

Blog banner

Life

Blog banner

10 Alien Encounters and Abduction Stories

Blog banner

Challenges and risks in service operations

Blog banner

LiquidPlanner

Blog banner