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

MODERN OPERATING SYSTEM

Blog banner

Explaining Buffer Overflow with Example

Blog banner

Craziness of dream 11 and how it impacts on our life

Blog banner

Deming’s Process

Blog banner

Excel records

Blog banner

A Happier Workplace Starts with Healthy Lunches by Meal Maharaj

Blog banner

VIRTUAL MACHINES

Blog banner

Multicore and multithreading 171

Blog banner

Data Science in Healthcare: Predicting Diseases

Blog banner

Linux Virtual Machine Process Scheduling

Blog banner

(Input/Output) in os

Blog banner

RAID

Blog banner

Networking 101: How to Build Meaningful Connections in College

Blog banner

IoT Evolution

Blog banner

I/O Management and Disk Scheduling

Blog banner

Famous Indian dishes that where misunderstood to be Indian

Blog banner

Maharashtrian culture: Tradition, Art, Food

Blog banner

FAMILY WHERE LIFE BEGINS....

Blog banner

Quality check in IT services

Blog banner

How can denial-of-service(Dos) attacks be prevented?

Blog banner

BrainGate Technology

Blog banner

Philadelphia Experiment : Was it real?

Blog banner

Traditional Unix System

Blog banner

Modern operating system

Blog banner

Reconnaissance

Blog banner

CONCURRENCY: MUTUAL EXCLUSION AND SYNCHRONIZATION-het karia

Blog banner

How to feel Happy everyday day

Blog banner

Data Mapping

Blog banner

What is OS and its overview

Blog banner

Geographic Information Systems(By aditi Unnikrishnan)

Blog banner

IO Buffers

Blog banner

Process State

Blog banner

Tools to support CSI activities

Blog banner

Virtual Machine

Blog banner

Virtual Memory

Blog banner

Virtual memory in windows

Blog banner

Deadlock

Blog banner

Challenges and risks in service operations

Blog banner

DATA BREACH CAUSES CHALLENGES PREVENTION AND FUTURE DIRECTIONS

Blog banner

E-security systems | CCTV

Blog banner

PERT Overview

Blog banner

Cross site scripting Attack

Blog banner