wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Starvation

profile
E 070 MEET HIRANI
Aug 14, 2024
0 Likes
0 Discussions
94 Reads

Starvation in an operating system occurs when a process is continuously overlooked by the scheduler and never gets the resources it needs to execute, even though it is ready to run. This happens because other processes with higher priority or greater resource needs keep getting those resources instead.


Example:

Imagine you're at a cafeteria where everyone is supposed to take turns to get food. However, every time you're about to get your turn, someone more important or more demanding cuts in line. As a result, you keep waiting and never get your meal. This situation is called starvation.


Key Points:

Resource Allocation: Starvation occurs when a process is ready to execute but never gets the CPU, memory, or other resources it needs.

Priority Issues: Often happens in systems where higher-priority tasks keep getting resources, causing lower-priority tasks to be ignored.

Continuous Waiting: The process remains in the queue indefinitely, never getting the chance to run.

In Operating Systems:

Starvation can happen in scheduling algorithms that favor certain processes over others. For example, in a priority-based scheduling system, a low-priority process might never get CPU time if higher-priority processes keep arriving.


Example in Operating Systems:

Suppose you have three processes in a system:


High-priority Process A: Requires a lot of CPU time.

Medium-priority Process B: Also needs CPU but not as much as A.

Low-priority Process C: Requires minimal CPU time.

If Process A and Process B keep getting CPU time because they have higher priorities, Process C might never get a chance to run, even though it is ready. This is starvation for Process C.


Summary:

Starvation in an operating system is when a process is ready to run but is continually denied the resources it needs, often because other processes are given priority. It’s like waiting in a line where others keep cutting ahead, leaving you without your turn.


Comments ()


Sign in

Read Next

Know your Processors!

Blog banner

Festive Ethnic Wear Guide: Patola-Inspired Looks for Every Celebration

Blog banner

What is Influencer Marketing and its Trends

Blog banner

Memory management

Blog banner

HubSpot

Blog banner

gis substation

Blog banner

What if COVID does not exist!

Blog banner

History of ITIL

Blog banner

Memory Management in Operating System

Blog banner

Challenges of Digital forensics in cloud computing environment

Blog banner

Old age lifestyle

Blog banner

Virtual memory

Blog banner

How to feel Happy everyday day

Blog banner

Buffering

Blog banner

The Importance of Data Quality Management in Data Science

Blog banner

Operation system

Blog banner

Kafka - A Framework

Blog banner

PPC Advertising and its Impressive Benefits

Blog banner

Impact of social media on the human life

Blog banner

Steps to create an Ubuntu EC2 Instance with GUI in AWS

Blog banner

E-BUSINESS RISK MANAGEMENT

Blog banner

"Mahakali cave"

Blog banner

LIMITED EDITION

Blog banner

To travel is to live

Blog banner

RAID

Blog banner

Critical success factors

Blog banner

Characteristics of Etherum

Blog banner

How to Prepare Your Child for Their First Day of School?

Blog banner

LEMON PICKLE (NIMBU KA ACHAR)

Blog banner

M commerce

Blog banner

How International Schools Build Global-Minded Students through Curriculum & Activities

Blog banner

Why we fail after giving 100% ?

Blog banner

Elegant fashion style

Blog banner

The application udemy

Blog banner

MEMORY FORENSIC ACQUISITION AND ANALYSISOF MEMORY AND ITS TOOLS COMPARISON

Blog banner

Evolution of Operating Systems

Blog banner

Dos (Denial of service) Attack

Blog banner

Flipkart

Blog banner

"Life as a Part-time Student"

Blog banner

GIS info about Bermuda Triangle

Blog banner

Stay Close To Adventure In Arcadia, Florida At Oak Tree Hotel

Blog banner

Smartsheet

Blog banner