wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Starvation

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

Data Visualization – Importance and tools (Tableau, Power BI)

Blog banner

A little bit of salt is all the hash needs!

Blog banner

Cache Memory in Operating Systems

Blog banner

Assignment-3

Blog banner

Building a Better You: Fitness Tips and Inspiration.

Blog banner

Explaining Buffer Overflow with Example

Blog banner

Computer Forensics and its Impact in Business Environment

Blog banner

Cloud Computing

Blog banner

It's all about our Brain.- The Brain Metaphor

Blog banner

Sagar Parikrama

Blog banner

Types of Threads

Blog banner

GIS Bharat Maps

Blog banner

Outlook mail

Blog banner

objectives and function of operating system

Blog banner

Smitten Kitchen Keepers

Blog banner

semaphores in os

Blog banner

10 Unsolved Mysteries all over the world

Blog banner

LINUX VSERVER VIRTUAL MACHINE ARCHITECTURE

Blog banner

Different Types of Data

Blog banner

Scheduling

Blog banner

PERSONAL STORIES

Blog banner

The khan mehtab transforming the modular switches company

Blog banner

BITCOIN WALLET

Blog banner

Brain wash of social media

Blog banner

LINUX

Blog banner

In the world of Technology...

Blog banner

Supervised and Unsupervised Learning

Blog banner

MODERN OPERATING SYSTEMS

Blog banner

Mail merge

Blog banner

E-BUSINESS RISK MANAGEMENT

Blog banner

MD5 Collisions and the impact on computer forensics

Blog banner

Os(Computer security threats)

Blog banner

SQL Injection

Blog banner

objectives and functions of operating system

Blog banner

Blog name

Blog banner

Multicore CPUs

Blog banner

bulk email software

Blog banner

10 Reasons to Date a South Indian Girl

Blog banner

ADD A SPICE TO YOUR LIFE.

Blog banner

Dancing Classes In Mumbai

Blog banner

The IT Service Lifecycle

Blog banner

EMAIL INVESTIGATION

Blog banner