wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Deadlock and Starvation

profile
Krishna Rao
Aug 14, 2024
0 Likes
0 Discussions
89 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

Understanding Toddler Tantrums: What They Really Mean

Blog banner

What is Data, Information and Knowledge?

Blog banner

Virtual memory

Blog banner

IoT Evolution

Blog banner

What is Packet Filtering?

Blog banner

WHAT IS TWITTER AND HOW DOES IT WORK

Blog banner

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

Blog banner

Photography

Blog banner

Worms, viruses and Bots

Blog banner

Kernel in Operating System

Blog banner

From Websites To Super Apps For Digital User Experience

Blog banner

The Rise of Evil Twin Attacks: A New Kind Of Spoofing Cyberattack

Blog banner

Outlook.com

Blog banner

Zomato (Income Sources)

Blog banner

Uniprocessor Scheduling

Blog banner

IT Service as as Value Creation

Blog banner

Fitness

Blog banner

Security issues

Blog banner

COMFORT IS ALL ABOUT FASHION

Blog banner

Southern Turkey Earthquake: Causes and Consequences of a Tragic Natural Disaster

Blog banner

Self defence

Blog banner

KASHMIR TRIPS

Blog banner

Data Science in Healthcare: Predicting Diseases

Blog banner

Privacy in Social Media and Online Services

Blog banner

Modern Operating System - Khush Bagaria

Blog banner

How to Compare Schools Before an Admission Decision

Blog banner

What Is Experiential Learning and Why Does It Work Better Than Rote Learning?

Blog banner

It's all about our Brain.- The Brain Metaphor

Blog banner

Having passion in life

Blog banner

How to Avoid being a Victim of Cybercrime

Blog banner

Challenges of Digital forensics in cloud computing environment

Blog banner

RAID

Blog banner

Firewall / IDS Evasion Techniques

Blog banner

Disk scheduling

Blog banner

Go Daddy

Blog banner

How to Manage Business Invoices and Payments Easily?

Blog banner

virtual machines and virtualization

Blog banner

Session Vulnerabilities

Blog banner

TRIGGERS IN DATABASE

Blog banner

Linux VServer Architecture

Blog banner

Sensory Play for Toddlers: Boosting Curiosity Through Touch, Sound, and Colour

Blog banner

Emotional Intelligence in Children: Why It Is as Important as Academics

Blog banner