wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Starvation

profile
Omkar Bhube
Aug 15, 2024
0 Likes
0 Discussions
81 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

Kafka - A Framework

Blog banner

MEMORY MANAGEMENT FILE

Blog banner

Sleep Matters: The Science Behind Toddler Naps

Blog banner

SNAPCHAT

Blog banner

IOT- Internet Of Things

Blog banner

Cloud Security: Trends and Innovations

Blog banner

How To Invest In Indian Stock Market @ BSE & NSE ~ Tutorial 3

Blog banner

Utilizing Data-Hiding and Retrieval Techniques in Cyber Forensics

Blog banner

ART AND CULTURE OF VRINDAVAN

Blog banner

Memory management

Blog banner

Service Strategy In ITSM

Blog banner

How can parents support a child’s mental health?

Blog banner

Short note on Microsoft office

Blog banner

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

Blog banner

OPERATING SYSTEM

Blog banner

How Sleep Impacts Learning and Behaviour for Toddlers?

Blog banner

To travel is to live

Blog banner

What is Email? Uses of Emails

Blog banner

DATA WRANGLING

Blog banner

Time Series Analysis

Blog banner

Life of an army person

Blog banner

Why Dry Fruits Make the Perfect Gifting Choice for Every Occasion?

Blog banner

10 Signs That Prove YOU are his FIRST priority.

Blog banner

Operating system evolution

Blog banner

How to use open SSL for web server - browser communication

Blog banner

38_Network Sniffing Techniques_SBC

Blog banner

Game via listing method

Blog banner

Classification Algorithms (Decision trees, SVM, Logistic regreession)

Blog banner

Not anti-social, but pro-solitude

Blog banner

Hacking Mobile Platforms

Blog banner

virtual machine

Blog banner

Processing Crime and Incident Scenes

Blog banner

Modern Operating Systems.

Blog banner

Why Progressive Web Apps (PWAs) Are Replacing Traditional Websites

Blog banner

Protein and Energy: Why Your Workday Diet Needs More of It

Blog banner

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

Blog banner

(Input/Output) in os

Blog banner

Direct Memory Access

Blog banner

Points to consider if you're planning to visit Florida in 2026

Blog banner

Memory Management

Blog banner

Cache Memory in Operating Systems

Blog banner

MAHAKAL LOK UJJAIN

Blog banner