wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

STARVATION

profile
Krish Kaunder
Aug 15, 2024
0 Likes
0 Discussions
49 Reads

In operating systems, starvation (or indefinite blocking) refers to a situation where a process is perpetually denied access to resources it needs to make progress, even though the resources are available. This typically happens in systems that use scheduling algorithms for resource allocation.


Causes of Starvation:

1. Priority Scheduling: If a scheduling algorithm always favors higher-priority processes, lower-priority processes might be starved of CPU time.

2. Resource Allocation: When a process holds resources while waiting for others, and other processes keep grabbing the resources it needs, the process can end up waiting indefinitely.

3. Long Wait Queue: In some scheduling systems, processes at the end of the queue might never get a chance to execute if new processes keep arriving and getting added to the front of the queue.


Example:

Consider a system using a priority-based scheduling algorithm where high-priority processes are always chosen over low-priority ones. If high-priority processes keep entering the system, a low-priority process may never get CPU time, leading to starvation.


Solutions to Starvation:

1. Aging: Gradually increasing the priority of a waiting process over time, ensuring that it eventually gets scheduled.

2. Fair Resource Allocation: Ensuring that every process gets a fair share of resources, perhaps by implementing round-robin or time-sharing scheduling.

3. Deadlock Detection: vIdentifying potential deadlocks and resolving them, as deadlocks can lead to starvation in some cases. 


Starvation is a significant issue in operating systems and resource management algorithms, as it can lead to inefficiency and poor system performance.


Comments ()


Sign in

Read Next

INTRODUCTION TO C#

Blog banner

Scala - a programming tool

Blog banner

MORDERN UNIX SYSTEM

Blog banner

MailChimp

Blog banner

Cyber Crime Investigation In The Era Of Big Data

Blog banner

Service design process in ITSM

Blog banner

History of ITIL

Blog banner

MY MOST THRILLED TREK ..... BHAIRAVGAD

Blog banner

I/O Management and Disk Scheduling

Blog banner

Session Hijacking

Blog banner

Dudhasagar waterfall ?

Blog banner

GOOGLE

Blog banner

PYTHON

Blog banner

GraphX:- A graph processing tool

Blog banner

Simple STEM Activities for Toddlers That Spark Curiosity

Blog banner

Data carving - using hex editor

Blog banner

Facebook Shut Down an AI Program!!! Facebook AI bots became Terminators???

Blog banner

IT security management

Blog banner

Memory Management

Blog banner

RAID

Blog banner

Synchronization

Blog banner

KAHAWA TEA

Blog banner

The Five Steps of Data Science

Blog banner

PROCESS STATES OF OPERATING SYSTEM

Blog banner

Animal’s have my heart

Blog banner

Modern Operating System

Blog banner

My favourite food

Blog banner

Solving Problems with AI: The Power of Search Algorithms

Blog banner

Paralysis/Paralysis Stroke

Blog banner

Platonic Solids

Blog banner

Evolution of Operating system

Blog banner

I/O Buffering

Blog banner

Logical and physical address

Blog banner

What Makes Patola the Queen of Silk?

Blog banner

Career v/s Job : Choose your passion

Blog banner

Not anti-social, but pro-solitude

Blog banner

Image Steganalysis in Digital Forensics

Blog banner

 " Healing of Yoga "

Blog banner

Fault tolerance

Blog banner

MYNTRA

Blog banner

Cache Memory(142)

Blog banner

Why Soft Skills Matter as Much as Grades?

Blog banner