wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

STARVATION

profile
Krish Kaunder
Aug 15, 2024
0 Likes
0 Discussions
53 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

10 Unknown facts about India's Independence

Blog banner

A buffer overflow

Blog banner

TOP 5 GAMING GADGETS (2024)

Blog banner

File Organization and Access

Blog banner

Deadlock and Starvation

Blog banner

Study of Backdoor and Trojan tools

Blog banner

Fault tolerance

Blog banner

Lifestyle of a photographer

Blog banner

Modern Operating system

Blog banner

QUANTUM COMPUTING IN SECURITY:A GAME CHANGER IN DIGITAL WORLD

Blog banner

Practical Implementation of Client Server model using TCP/IP.

Blog banner

Raising Emotionally Intelligent Students: The Classroom Beyond Academics

Blog banner

Image Steganalysis in Digital Forensics

Blog banner

Security Issues and Countermeasures

Blog banner

Security issues in Sensor Networks and gathering admissible evidence in Network Forensics

Blog banner

A Day in the Life at Elzee: What Your Child Does Between Drop-Off and Pick-Up

Blog banner

Gamer life

Blog banner

File system

Blog banner

Why Summer Break Is Important for Emotional and Cognitive Growth?

Blog banner

Decoding Modern Assessment: Why We Look Beyond the Grade Sheet

Blog banner

Senseless Teeths

Blog banner

Uniprocessor scheduling

Blog banner

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

Blog banner

Little Habits, Big Impact: Daily Preschool Routines That Shape the Future

Blog banner

A small world of Sockets

Blog banner

How To Secure Operating Systems ?

Blog banner

Evolution of Operating Sytems

Blog banner

MORDERN UNIX SYSTEM

Blog banner

My First Trek - Sondai, Karjat - Shoaib Malik

Blog banner

10 Survival Tips that might save your life

Blog banner

Linux Threads:

Blog banner

PROCESS STATES OF OPERATING SYSTEM

Blog banner

Sessions In OS.

Blog banner

Operating system

Blog banner

Deadlock in operating system

Blog banner

How To Invest in Indian Stock Market For Beginners. ~ Tutorial 2 (NSDL And CSDL) Continued...

Blog banner

Types of Viruses

Blog banner

Is Social Media Marketing The Next Wave Of Digital Marketing?

Blog banner

Windows Operating System

Blog banner

Bharat Maps

Blog banner

10 Alien Encounters and Abduction Stories

Blog banner

10 Interesting Facts about Attack on Titan

Blog banner