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

Disk Scheduling

Blog banner

1.1 basic elements

Blog banner

How to Plan a Week of Healthy Meals Without Stress

Blog banner

Memory Management

Blog banner

Why Seasonal Summer Foods Are Best for Your Health?

Blog banner

Install Ubuntu Easily

Blog banner

Scheduling in Operating Systems

Blog banner

security controls

Blog banner

Operating Systems

Blog banner

Vulnerability Assessment

Blog banner

5 Stages of Digital Marketing

Blog banner

Vikrant’s first blog

Blog banner

Virtual Memory

Blog banner

File management -disha parekh

Blog banner

Business-to-Business

Blog banner

AN EVENT-BASED DIGITAL FORENSIC INVESTIGATION

Blog banner

Deadlock

Blog banner

Fashion marketing in india

Blog banner

Are Social Media Paid Campaigns Worth It?

Blog banner

Why Extreme Opinions Are Rising: Psychological Insights into Society’s Divides

Blog banner

Art and Culture of Rajasthan

Blog banner

Service Validation and Testing during the Design Phase

Blog banner

IT GOVERNANCE

Blog banner

CYBERPEACEKEEPING: NEW WAYS TO PREVENT AND MANAGE CYBERATTACKS

Blog banner

The Everyday Parenting Dilemma: Safety Vs Independence

Blog banner

Zomato's Secret Digital Marketing Techniques!

Blog banner

BharatPe

Blog banner

Global versus Indian Mental Health Differences

Blog banner

An Approach To Spyware Detection And Removal

Blog banner

Top 4 Places To Stay In Copenhagen

Blog banner

What is HTML?

Blog banner

Types of Hackers.

Blog banner

OS Evolution Achievements

Blog banner

Mendeley (management software)

Blog banner

Python as a tool for data analysis

Blog banner

What is Spyware?

Blog banner

Mutual exclusion

Blog banner

IO Buffers

Blog banner

Study on cyber and network forensic in computer security management

Blog banner

Answer

Blog banner

Cache memory

Blog banner

Objectives and Functions of Operating System

Blog banner