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

Evolution of Operating System

Blog banner

The Impact of Cyber Forensics on Corporate Governance and Compliance

Blog banner

THE DESIRE OF MANY

Blog banner

Remote Work in 2026

Blog banner

Service Catalogue Management

Blog banner

Environmental Management using GIS

Blog banner

Virtual memory

Blog banner

Unlocking the Secrets: Basic Operations of Computer Forensic Laboratories

Blog banner

What are NFT s?

Blog banner

You Get Everyone, But No One Gets You: The Lonely Side of High Emotional Intelligence

Blog banner

DIGITAL ECONOMY

Blog banner

Modern Operating System

Blog banner

Segmentation and paging concept

Blog banner

Is it important to follow all the trends that come up on social media?

Blog banner

Hello World

Blog banner

Types of threads

Blog banner

Chicken Dum Biryani

Blog banner

Smartsheet

Blog banner

THREADS (assignment 1)

Blog banner

What is Data, Information and Knowledge?

Blog banner

Brain wash of social media

Blog banner

Palliative and End — of — Life Care: A Psychological and Holistic Perspective

Blog banner

Importance of modern technology era

Blog banner

The launch of UniMap by HERE

Blog banner

Jio .....A Revolution ?? ??

Blog banner

HTML vs HTML5

Blog banner

ROLE OF THE COMPUTER FORENSICS TOOLS AND TECHNIQUES

Blog banner

What is 'Multi-core and Multi-threading' ?

Blog banner

What Makes Traditional God Keri Aachar So Special?

Blog banner

Race condition

Blog banner

Threat from Inside: Educating the Employees Against Cyber Threats

Blog banner

MACHINE LEARNING

Blog banner

Information of meesho company

Blog banner

Risk mitigation and management

Blog banner

Deadlock

Blog banner

Threads

Blog banner

Data Warehousing

Blog banner

Memory Management - operating system

Blog banner

Virtual Machine's

Blog banner

Why do you need a personalised bag tag for your kids' school bags?

Blog banner

New Ransomware Encrypts Your Android And Then Changes PIN Lock

Blog banner

To travel is to live

Blog banner