wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

STARVATION

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

Visualization in Data Science

Blog banner

Types Of scheduling

Blog banner

Types of E-Commerce

Blog banner

Beautiful and stunning natural phenomena worth to see

Blog banner

Virtualization

Blog banner

Cache Memory(142)

Blog banner

PPT methodology

Blog banner

Flipkart

Blog banner

Method of Evaluating Information Security Level in an Organization

Blog banner

SmartData Collective: Data Science aur Analytics ki Duniya

Blog banner

Study of Backdoor and Trojan tools

Blog banner

Memory Management

Blog banner

Memory heirachy (Operating system)

Blog banner

Deadlock in Operating systems

Blog banner

How to Run your First android App

Blog banner

Fitness

Blog banner

Building Confidence in Children Through Daily Routines and Play

Blog banner

OS Assignment 3

Blog banner

Sessions In OS.

Blog banner

Electronic Funds Transfer

Blog banner

MY FIRST BLOG?

Blog banner

Who decides your overthinking, anyway?

Blog banner

Google

Blog banner

E-learning in today's world

Blog banner

computer security

Blog banner

Memory hierarchy

Blog banner

This is my first blog.

Blog banner

Network Forensics

Blog banner

Instagram Features in 2023 That Will Leave You Stunned!

Blog banner

Juveniles, Internet and Computer Crime

Blog banner

My favourite food

Blog banner

PERSONALITY DEVELOPMENT

Blog banner

History of Money

Blog banner

Multicore and Multithreading

Blog banner

Getting to Kashmir: Alternative to the Jammu-Srinagar highway

Blog banner

Question

Blog banner

Sage

Blog banner

TAILS OS

Blog banner

What does the Australian summer have in store for your oral health?

Blog banner

Memory heirchy

Blog banner

Digital Marketing Ethics Transparency Trust And Brand Reputation digital

Blog banner

Modern Operating Systems

Blog banner