wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Starvation

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

Memory Management

Blog banner

Sleep Matters: The Science Behind Toddler Naps

Blog banner

PERT Overview

Blog banner

File management -disha parekh

Blog banner

What Are Electro-Forged Gratings? Benefits, Applications, and Why Industries Prefer Them

Blog banner

Security and E-mail

Blog banner

Cross site scripting Attack

Blog banner

Save Environment

Blog banner

Honeypot in cyber security

Blog banner

Concurrency management in operating systems

Blog banner

An Overivew Of Cache Memory

Blog banner

How Laughing Gas Makes Your Dental Visit So Much Easier

Blog banner

Safe Learning Spaces: Why Preschool Environment Matters More Than Ever Today

Blog banner

CRISP-DM Methodology

Blog banner

Direct Memory Access

Blog banner

The Psychology of Diversity, Equity & Inclusion: How Inclusive Workplaces Boost Productivity

Blog banner

10 Unknown facts about India's Independence

Blog banner

Security requirements for Safe E-Payments

Blog banner

Decrypting Cryptocurrency: Tracing Transactions in Cyber Investigations

Blog banner

Wiretapping

Blog banner

Famous Indian dishes that where misunderstood to be Indian

Blog banner

IT RISK

Blog banner

38_Exploring The Honeynet Project

Blog banner

ITIL Version 3 and 4 differenciation?

Blog banner

Power of words

Blog banner

How Men and Women Process Pain Differently

Blog banner

Mumbai famous street food

Blog banner

E-learning in today's world

Blog banner

How Social Media Algorithms Will Work in 2026?

Blog banner

MySQL

Blog banner

Emailing the merger document

Blog banner

Memory management

Blog banner

Virtual memory

Blog banner

A Review on Data Acquisition in Cyber Forensics

Blog banner

The Role of cryptography in cyber security

Blog banner

Monday. com App

Blog banner

c

Blog banner

USES OF WHATSAPP

Blog banner

Deadlock

Blog banner

Virtual memory

Blog banner

Multiprocessor

Blog banner

Buffer Overflow

Blog banner