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

MEMORY MANAGEMENT REQUIREMENT

Blog banner

Crypto tax evasion

Blog banner

Multicore CPUs

Blog banner

Process Creation

Blog banner

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

Blog banner

Electronic data interchange

Blog banner

FIREWALL

Blog banner

Introduction to Data Science: Life Cycle & Applications

Blog banner

Virtual Machine

Blog banner

Sagar Parikrama

Blog banner

Steps to create an Ubuntu EC2 Instance with GUI in AWS

Blog banner

IT GOVERNANCE

Blog banner

The Role of Teachers in Building a Child’s Confidence

Blog banner

Data Visualization

Blog banner

ACHIEVEMENTS IN OPERATING SYSTEMS

Blog banner

DURGA POOJA

Blog banner

CYBERBULLYING: Negative comments!

Blog banner

PERT Overview

Blog banner

CYBER SECURITY CHALLENGES

Blog banner

Assignment-3

Blog banner

Interrupts - Types, Working & Importance

Blog banner

Security requirements for Safe E-Payments

Blog banner

Deadlock and Starvation

Blog banner

Web browser forensics:Tools,Evidence collection and analysis

Blog banner

Difference Between Classification And Clustering

Blog banner

Modern Operating system

Blog banner

Virtual memory

Blog banner

Data Exfiltration

Blog banner

Install Ubuntu in Vmware

Blog banner

Uniprocessor Scheduling

Blog banner

Mental Health

Blog banner

Mumbai

Blog banner

Know your Processors!

Blog banner

Types of email

Blog banner

Operating system evolution

Blog banner

How can parents support a child’s mental health?

Blog banner

Marvel Cinematic Universe

Blog banner

Dr. Venkadavarahan

Blog banner

What is metaverse?

Blog banner

Linux Threads:

Blog banner

Deadlock in Operating systems

Blog banner

Rain bow

Blog banner