wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

STARVATION

profile
Krish Kaunder
Aug 15, 2024
0 Likes
0 Discussions
53 Reads

In operating systems, starvation (or indefinite blocking) refers to a situation where a process is perpetually denied access to resources it needs to make progress, even though the resources are available. This typically happens in systems that use scheduling algorithms for resource allocation.


Causes of Starvation:

1. Priority Scheduling: If a scheduling algorithm always favors higher-priority processes, lower-priority processes might be starved of CPU time.

2. Resource Allocation: When a process holds resources while waiting for others, and other processes keep grabbing the resources it needs, the process can end up waiting indefinitely.

3. Long Wait Queue: In some scheduling systems, processes at the end of the queue might never get a chance to execute if new processes keep arriving and getting added to the front of the queue.


Example:

Consider a system using a priority-based scheduling algorithm where high-priority processes are always chosen over low-priority ones. If high-priority processes keep entering the system, a low-priority process may never get CPU time, leading to starvation.


Solutions to Starvation:

1. Aging: Gradually increasing the priority of a waiting process over time, ensuring that it eventually gets scheduled.

2. Fair Resource Allocation: Ensuring that every process gets a fair share of resources, perhaps by implementing round-robin or time-sharing scheduling.

3. Deadlock Detection: vIdentifying potential deadlocks and resolving them, as deadlocks can lead to starvation in some cases. 


Starvation is a significant issue in operating systems and resource management algorithms, as it can lead to inefficiency and poor system performance.


Comments ()


Sign in

Read Next

What Makes a School Safe, Supportive, and Student-Friendly

Blog banner

You'll get to know about Pankaj Negi

Blog banner

Operating Systems Overview

Blog banner

A Miracle Toothpaste for Cavity Reversal is a Total Scam

Blog banner

Sweet and Sour Mango Pickle (Gol Keri)

Blog banner

LinkedIn: Watch out for these 7 upcoming updates in 2023

Blog banner

Dos (Denial of service) Attack

Blog banner

Modern operating systems (OS)

Blog banner

Riddhi Miyani 53003220140

Blog banner

Why Oak Tree Hotel Is Arcadia’s Hidden Gem?

Blog banner

What do you mean by online marketing and why do you need to know about it

Blog banner

Linux VServer Architecture

Blog banner

Security Issues and Countermeasures

Blog banner

Concurrency and memory

Blog banner

Worms, viruses and Bots

Blog banner

Threads

Blog banner

TRELLO

Blog banner

Deadlock

Blog banner

LinkedIn

Blog banner

Memory Hierarchy

Blog banner

OS Assignment 3

Blog banner

Cache Memory

Blog banner

Expressing and Measuring Risk (Risk Management)

Blog banner

Understanding Suicidal Thoughts and Self-Harm: Recognising the Signs and Finding Hope

Blog banner

FREE VERSION OF G-MAIL

Blog banner

Uniprocessor Scheduling

Blog banner

The Bold Digital Marketing Moves That Made Durex India’s Second-Largest Condom Brand

Blog banner

This too shall pass

Blog banner

OS Assignment 1

Blog banner

Blog on health and fitness

Blog banner

The Memory Hierarchy

Blog banner

Sage business cloud accounting

Blog banner

History of ITIL

Blog banner

Everything You Need for a Perfect Stay in Arcadia, Florida, USA.

Blog banner

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

Blog banner

An Overview of Virtual Machines

Blog banner

Virtual Memory

Blog banner

Fitness regime by Deepesh

Blog banner

Music is life

Blog banner

Process states

Blog banner

Why You Need 2FA (Two-Factor Authentication) On Your Email And Other Online Accounts

Blog banner

Deadlock and Starvation

Blog banner