wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Starvation

profile
Omkar Bhube
Aug 15, 2024
0 Likes
0 Discussions
78 Reads

Starvation in operating systems (OS) occurs when a process is perpetually denied the necessary resources to proceed with its execution. This usually happens when a scheduling algorithm continuously favors other processes, leading to the affected process being delayed indefinitely. Starvation is often associated with priority-based scheduling, where lower-priority processes may never get CPU time because higher-priority processes keep taking precedence. To mitigate starvation, techniques like *aging* can be employed, where the priority of a waiting process is gradually increased over time to ensure it eventually gets the necessary resources.


Causes of Starvation:

Priority Scheduling: In priority-based systems, higher-priority processes can continuously preempt lower-priority ones, leading to the lower-priority processes never getting scheduled.Resource Contention: When multiple processes are competing for limited resources, a process might be continuously bypassed in favor of others, especially if the resource allocation is biased.Non-preemptive Scheduling: In systems where a process cannot be preempted once it starts, longer processes can monopolize the CPU, causing others to starve.


Solutions:

Aging: This is a common solution where the priority of a waiting process is gradually increased the longer it waits, ensuring that it will eventually be executed.Fair Scheduling

Algorithms: Some algorithms, like Round-Robin or Multilevel Queue Scheduling with time-sharing, are designed to minimize the chances of starvation by ensuring that all processes get some CPU time.Resource Allocation Policies: Implementing fair resource allocation policies can help in reducing contention and ensuring that all processes receive the resources they need in a timely manner.


Comments ()


Sign in

Read Next

Puri Jagannath temple

Blog banner

IO Buffers

Blog banner

MAJOR ACHIEVEMENTS OF OS

Blog banner

A book review

Blog banner

PROCESS STATES OF OPERATING SYSTEM

Blog banner

Health is Wealth

Blog banner

Understanding Toddler Tantrums: What They Really Mean

Blog banner

The Impact of Cyber Forensics on Corporate Governance and Compliance

Blog banner

Understanding Business Layer in Data Science

Blog banner

How to Plan a Week of Healthy Meals Without Stress

Blog banner

Top 10 Logos and their meanings

Blog banner

PODIO

Blog banner

Classification Algorithms (Decision trees, SVM, Logistic regreession)

Blog banner

MY MOST THRILLED TREK ..... BHAIRAVGAD

Blog banner

Video games

Blog banner

Having passion in life

Blog banner

Consumer to consumer Business model

Blog banner

Deadlock and Starvation

Blog banner

Understanding Mobile Device Forensics

Blog banner

Install Ubuntu in Vmware

Blog banner

WORKFRONT SOFTWARE

Blog banner

DATA WRANGLING

Blog banner

MQTT (MQ Telemetry Transport) in Data Science

Blog banner

Education?

Blog banner

COMPUTER FORENSICS AND GRAPHICS

Blog banner

The Role of Data Provenance and Lineage in Modern Data Science

Blog banner

Security issues

Blog banner

Man VS Nature

Blog banner

Why Oak Tree Hotel Is Arcadia’s Hidden Gem?

Blog banner

Precision-Recall in Data Science

Blog banner

Security requirements for Safe E-Payments

Blog banner

Place to visit in pune

Blog banner

Deadlock

Blog banner

10 Reasons to date your best friend

Blog banner

Next time you click on "Remind me later", think twice!

Blog banner

Race Condition in Operating Theatre

Blog banner

Firewall in Computer Network

Blog banner

How User Data Shapes Personalised Campaigns

Blog banner

The New Classic: Indo Western Patola Outfits for Today’s Woman

Blog banner

Balance

Blog banner

RSA (Rivest-Shamir-Adelman) Algorithm

Blog banner

A Tourist’s Guide To Florida’s Rodeo Culture: What To Expect At The Arcadia Championship Rodeo

Blog banner