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

Process Description

Blog banner

AOL Mail

Blog banner

12 Principles of Animation

Blog banner

Memory Management Techniques

Blog banner

Life of a 2020-2021 student

Blog banner

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

Blog banner

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

Blog banner

AI & Data Science in Healthcare – Predicting diseases, medical imaging analysis

Blog banner

JIRA SOFTWARE

Blog banner

Starvation and Deadlock.

Blog banner

Memory management

Blog banner

Deadlock

Blog banner

Data Science & AI

Blog banner

PODIO

Blog banner

Mutual exclusion

Blog banner

Self defence

Blog banner

Simple AI Symptom Diagnosis Using LISP – Rule-Based Expert System

Blog banner

BrainGate Technology

Blog banner

Ethical Issues in Data Science and Role of Data Science in Smart Cities

Blog banner

Big Data Architecture

Blog banner

MODERN OPERATING SYSTEM

Blog banner

Microsoft Windows Overview

Blog banner

differentiate thinking humanly and rationally

Blog banner

Practical Implementation of Client Server model using TCP/IP.

Blog banner

Metasploit

Blog banner

Online Games

Blog banner

The Evolution of Operating Systems

Blog banner

Philadelphia Experiment : Was it real?

Blog banner

Threat management

Blog banner

Service stratergy principles

Blog banner

security requirements for safe e-payment

Blog banner

Principles of Concurrency

Blog banner

LINUX

Blog banner

Indian Culture and Tradition

Blog banner

Importance of Website

Blog banner

Working with Sniffers for monitoring network communication

Blog banner

HACKING MOBILE PLATFORM

Blog banner

VIRTUAL MACHINES

Blog banner

Number Guessing game --lisp

Blog banner

Cache Memory

Blog banner

Ransomware

Blog banner

Service Catalogue Management

Blog banner