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

Security and E-mail

Blog banner

Smartsheet

Blog banner

MEMORY MANAGEMENT REQUIREMENT

Blog banner

Virtual Memory

Blog banner

Memory Management

Blog banner

Memory Management

Blog banner

Functions of operating system

Blog banner

Virtual machine.

Blog banner

Race Condition in Operating Theatre

Blog banner

WHAT IS TWITTER AND HOW DOES IT WORK

Blog banner

'C', 'C++' and 'Java': Head-to-Head

Blog banner

Understanding the 'Ambiverts'

Blog banner

Service stratergy principles

Blog banner

Dos (Denial of service) Attack

Blog banner

DBMS and various career options related to it.

Blog banner

evolution of operating system - Disha Parekh

Blog banner

Rain

Blog banner

Software

Blog banner

BITCOIN WALLET

Blog banner

Ethical Issues in Data Science and Role of Data Science in Smart Cities

Blog banner

POSITIVE ATTITUDE IN LIFE

Blog banner

A Happier Workplace Starts with Healthy Lunches by Meal Maharaj

Blog banner

Deadlock and Starvation

Blog banner

virtual machine

Blog banner

Android Application Components and Activity Lifecycle

Blog banner

Kafka - A Framework

Blog banner

Privacy in Social Media and Online Services

Blog banner

VIRTUAL MEMORY

Blog banner

Session Hijacking

Blog banner

Cache Memory

Blog banner

Balance

Blog banner

Excel records

Blog banner

Operating system

Blog banner

Traveling

Blog banner

10 Reasons why Monica and Chandler are the best couple ever.!!!

Blog banner

Game Theory in Blockchain

Blog banner

Decoding Confusion Matrix

Blog banner

Kernel in Operating System

Blog banner

BUSINESS MODELS OF E COMMERCE

Blog banner

Mumbai Metro 3

Blog banner

Privacy-Enhancing Computation Techniques

Blog banner

Fault Tolerance in an Operating System

Blog banner