wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Starvation

profile
E 070 MEET HIRANI
Aug 14, 2024
0 Likes
0 Discussions
97 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

Your Guide to Great Flossing, by the best affordable dentist in Maroubra

Blog banner

Financial Stress and Mental Health

Blog banner

Dental Problems That Start Small But Should Never Be Ignored

Blog banner

Population

Blog banner

A-B-C of Networking: Part-1 (Basics)

Blog banner

GraphX:- A graph processing tool

Blog banner

Why is ITSM important in IT organization?

Blog banner

child Labour

Blog banner

Understanding Suicidal Thoughts and Self-Harm: Recognising the Signs and Finding Hope

Blog banner

The Bold Digital Marketing Moves That Made Durex India’s Second-Largest Condom Brand

Blog banner

Explain Kernel in OS

Blog banner

A Complete Guide to Satvik Indian Powder Masalas and Their Everyday Uses

Blog banner

Lemon and Chilli Pickle (Limbu Mirchi Achar)

Blog banner

Deadlock

Blog banner

Use It or Lose It: Why November Is the Best Time to Claim Your Dental Extras and Medicare CDBS Before Year-End

Blog banner

Types Of Interrupt

Blog banner

What makes Nugget RC Racing Florida’s Most Exciting Racing Events?

Blog banner

Pro-Tips On How To Keep your Foot Healthy

Blog banner

DIGITAL ECONOMY

Blog banner

How To Secure Operating Systems ?

Blog banner

Automating OSINT tasks for efficient Cyber Forensics Investigations

Blog banner

Balance

Blog banner

Social Media Sentiment Analysis

Blog banner

Real-time Scheduling - 53003230061

Blog banner

undefined

Blog banner

Disk Management

Blog banner

Layers Of Blockchain

Blog banner

I/O Management and Disk Scheduling

Blog banner

I/O Buffering

Blog banner

Why Every Preschooler Learns at Their Own Pace?

Blog banner

Method of Evaluating Information Security Level in an Organization

Blog banner

Why Does Hierarchy Still matter in Organizations?

Blog banner

Throttle engine ’Sneak peek into the future’

Blog banner

Memory management and virtual memory

Blog banner

LIMITED EDITION

Blog banner

Computer Security

Blog banner

ARTICLE ON WRIKE CORPORATION

Blog banner

Life lesson

Blog banner

Personalized Movie Recommendations with Data Science

Blog banner

Linux -V Server Virtual Machine

Blog banner

Trello ( management software)

Blog banner

Riddhi Miyani 53003220140

Blog banner