wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Starvation

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

Importance Of Blockchain

Blog banner

Data Mining

Blog banner

Why Inconel 625 and Monel 400 Remain Unbeatable in Refinery Applications?

Blog banner

Types of Threads

Blog banner

Data Warehousing

Blog banner

 " Healing of Yoga "

Blog banner

Internet of Things

Blog banner

Top 5 Benefits of Artificial Intelligence

Blog banner

Kafka - A Framework

Blog banner

Linux -V Server Virtual Machine

Blog banner

Zoho

Blog banner

PPC Advertising and its Impressive Benefits

Blog banner

INSTAGRAM

Blog banner

Embracing the power of Modern Machine UNIX

Blog banner

Record Blocking

Blog banner

Disk cache

Blog banner

Memory Management

Blog banner

Virtual memory

Blog banner

File Organization and Access

Blog banner

Linux Virtual Machine Process Scheduling

Blog banner

Session Hijacking Techniques

Blog banner

Platonic Solids

Blog banner

POSITIVE ATTITUDE IN LIFE

Blog banner

Human factor, a critical weak point in the information security of an organization’s IOT

Blog banner

Is it important to follow all the trends that come up on social media?

Blog banner

The Impact of Cyber Forensics on Corporate Governance and Compliance

Blog banner

Real Time Scheduling

Blog banner

Save Girl Child

Blog banner

Skills An Ethical Hacker Must Have

Blog banner

Why Time Management Is the Secret to College Success (and How to Master It)

Blog banner

THE INPACT OF SOCIAL MEDIA!

Blog banner

I/O Management and Disk Scheduling

Blog banner

Why Summer Break Is Important for Emotional and Cognitive Growth?

Blog banner

Evolution of Operating system

Blog banner

gis substation

Blog banner

Android Flashlight Application

Blog banner

Google

Blog banner

IT RISK

Blog banner

Uniprocessor Scheduling

Blog banner

Memory managment

Blog banner

Threads and concurrency

Blog banner

Gamer life

Blog banner