wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Deadlock and Starvation

profile
Krishna Rao
Aug 14, 2024
0 Likes
0 Discussions
93 Reads

Deadlock occurs when each process holds a resource and wait for other resource held by any other process. Necessary conditions for deadlock to occur are Mutual Exclusion, Hold and Wait, No Preemption and Circular Wait. In this no process holding one resource and waiting for another get executed. For example, in the below diagram, Process 1 is holding Resource 1 and waiting for resource 2 which is acquired by process 2, and process 2 is waiting for resource 1. Hence both process 1 and process 2 are in deadlock.



Starvation is the problem that occurs when high priority processes keep executing and low priority processes get blocked for indefinite time. In heavily loaded computer system, a steady stream of higher-priority processes can prevent a low-priority process from ever getting the CPU. In starvation resources are continuously utilized by high priority processes. Problem of starvation can be resolved using Aging. In Aging priority of long waiting processes is gradually increased.


Comments ()


Sign in

Read Next

Riddhi Miyani 53003220140

Blog banner

Principles of Service Operation

Blog banner

Consumer to consumer business mode

Blog banner

Big Data

Blog banner

Deadlock

Blog banner

Rain bow

Blog banner

A Day in the Life at Elzee: What Your Child Does Between Drop-Off and Pick-Up

Blog banner

Game via listing method

Blog banner

Cloud Computing

Blog banner

Tomato Butter Sauce with Bucatini

Blog banner

RAID

Blog banner

Deadlock and Starvation

Blog banner

Famous Indian dishes that where misunderstood to be Indian

Blog banner

File management

Blog banner

COMFORT IS ALL ABOUT FASHION

Blog banner

"The Benefits of Using GIS in Agriculture"

Blog banner

A buffer overflow

Blog banner

Hosting basics

Blog banner

The Joy of Giving: How Festivals Teach Children Empathy and Gratitude

Blog banner

Concurrency:Deadlock and Starvation

Blog banner

Define Instagram.

Blog banner

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

Blog banner

Advanced Persistent Threats (APTs)

Blog banner

undefined

Blog banner

Virtual machine and virtualizing

Blog banner

Music

Blog banner

The Art Of Getting What You Want In Life....

Blog banner

MODERN OPERATING SYSTEM

Blog banner

5 Common Faults In Construction Tenders

Blog banner

How to insert contacts in zoho crm using php

Blog banner

Diwali

Blog banner

Why Users Leave Your Website in 5 Seconds (And How UI/UX Fixes It)

Blog banner

Gis in agriculture and farming

Blog banner

Malware Defense

Blog banner

5 ways to save money on catering services in Mumbai

Blog banner

Memory management

Blog banner

 " Healing of Yoga "

Blog banner

GIS REMOTE SENSING

Blog banner

Why Your Child Cries at Drop-Off and How Preschools Handle It Gently

Blog banner

Modern operating system

Blog banner

Security issues

Blog banner

Mobile Security

Blog banner