wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

STARVATION

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

An Approach To Spyware Detection And Removal

Blog banner

Mumbai

Blog banner

Toothache at night? What does this mean, and how to cope with it?

Blog banner

10 Unsolved Mysteries all over the world

Blog banner

Understanding Gen Z: A Generation Facing Crisis and Potential

Blog banner

How Laughing Gas Makes Your Dental Visit So Much Easier

Blog banner

Modern operating systems (OS)

Blog banner

10 Signs your Computer has Virus

Blog banner

Importance Of Time

Blog banner

Security issues

Blog banner

Digital black market or dark net poses a national security threat?

Blog banner

Uniprocessor and Types

Blog banner

Art and Culture of Rajasthan

Blog banner

The Right way of cooking

Blog banner

geographic information system (GIS)

Blog banner

Google App Engine

Blog banner

Virtual memory

Blog banner

Dangers of Using Public WiFis

Blog banner

Service Design Model

Blog banner

The Art Of Getting What You Want In Life....

Blog banner

Emerging threats in cyber Forensics

Blog banner

Binary Search Tree (BST) in Data Structure

Blog banner

MAHAKAL LOK UJJAIN

Blog banner

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

Blog banner

Virtual Machine

Blog banner

Modern operating system

Blog banner

The Memory Hierarchy

Blog banner

How to Compare Schools Before an Admission Decision

Blog banner

Introduction to Solidity Programming for Blockchain Development

Blog banner

Atlantis - The Lost Island.........

Blog banner

Blockchain uses and use cases

Blog banner

Data Lakes: A Key to Modern Data Management

Blog banner

GUIDE TO GIS

Blog banner

Memory Management in Operating System

Blog banner

Message Passing in OS

Blog banner

JUSTICE FOR EVERY “BEZUBAAN ANIMAL”

Blog banner

I/O Management and Disk Scheduling

Blog banner

AN EVENT-BASED DIGITAL FORENSIC INVESTIGATION

Blog banner

COMFORT IS ALL ABOUT FASHION

Blog banner

CYBER FORENCIS: PAST, PRESENT AND FUTURE.

Blog banner

The Rise of Evil Twin Attacks: A New Kind Of Spoofing Cyberattack

Blog banner

Threads

Blog banner