wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

OS Assignment 3

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

Define Instagram.

Blog banner

Mobile Security

Blog banner

The Rich Heritage Of Patola Sarees: Gujarat’s Timeless Weaving Art

Blog banner

Honeypot in cyber security

Blog banner

Top 4 Places To Stay In Copenhagen

Blog banner

How College Events Build Real-world Skills You Can’t Learn From Textbooks

Blog banner

The Role of cryptography in cyber security

Blog banner

Current Trends in GIS and Remote Sensing(Ocean Applications)

Blog banner

Ghee vs. Coconut Oil vs. Mustard Oil: Which Cooking Fat Wins for Indian Food?

Blog banner

A buffer overflow

Blog banner

Friendship

Blog banner

Cloud Forensic Tools And Storage :A Review Paper

Blog banner

The Rise of Polo Tourism in the USA: How Travellers Are Blending Luxury Stays with Elite Sports

Blog banner

CONCURRENCY

Blog banner

Predictive Analytics: How Data Science Predicts Trends(Weather ,Stock Market,Sales Forecasting ).

Blog banner

Reconnaissance

Blog banner

Recipe of Paneer Butter Masala

Blog banner

Video games

Blog banner

Worms, viruses and Bots

Blog banner

Juveniles, Internet and Computer Crime

Blog banner

OS- Assignnment 1

Blog banner

Brain wash of social media

Blog banner

To-Do List In LISP

Blog banner

"Audit" In Data Science

Blog banner

Memory Management

Blog banner

Fossil Hunting 101 at the Peace River, Arcadia, Florida, USA

Blog banner

Confidence Building Activities for the New School Year

Blog banner

History of Money

Blog banner

How GIS in Agriculture Eliminates Guesswork

Blog banner

What is HTML?

Blog banner

Big O Notation

Blog banner

Process Creation

Blog banner

Linux -V Server Virtual Machine

Blog banner

How Cyber Forensics use in AI

Blog banner

Junk food vs healthy food

Blog banner

SQL Injection Techniques

Blog banner

Kernel Memory Allocation In Linux.

Blog banner

What Function Does SEO Serve in Digital Marketing?

Blog banner

Smart Shoephone: Is that technology overdose!?

Blog banner

Save Girl Child

Blog banner

MySQL

Blog banner

Developments in Modern Operating Systems

Blog banner