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

Web browser forensics:Tools,Evidence collection and analysis

Blog banner

Service Transition Process in ITSM

Blog banner

Utilizing Data-Hiding and Retrieval Techniques in Cyber Forensics

Blog banner

Data Science in Healthcare: Predicting Diseases

Blog banner

My Favorite Sportsperson

Blog banner

Assignment-3

Blog banner

OS PROCESS DESCRIPTION AND CONTROL-SARVAGYA JALAN

Blog banner

Depression

Blog banner

LISP - Library Management System

Blog banner

?Why Does My Breath Still Smell After Brushing?

Blog banner

SECURITY VULNERABILITIES COUNTERMEASURES IN A SMART SHIP SYSTEM

Blog banner

Simple STEM Activities for Toddlers That Spark Curiosity

Blog banner

Os(Computer security threats)

Blog banner

DEVELOPMENTS LEADING TO MODERN OPERATING SYSTEMS

Blog banner

How Schools Can Reduce Exam Stress in Students?

Blog banner

Artificial Intelligence (AI)

Blog banner

HUBSPOT

Blog banner

Chicken Dum Biryani

Blog banner

Charcoal, Lemon, and DIY Kits: Which “Viral” Dental Trends Are Actually Dangerous?

Blog banner

Image Steganography: Hiding Secrets in Plain Sight

Blog banner

Threads and concurrency

Blog banner

Session Hijacking

Blog banner

From Websites To Super Apps For Digital User Experience

Blog banner

Protect yourself from System Hacking with these Simple Steps

Blog banner

Operating System

Blog banner

File system

Blog banner

Palliative and End — of — Life Care: A Psychological and Holistic Perspective

Blog banner

Memory management

Blog banner

Throttle engine ’Sneak peek into the future’

Blog banner

Sage

Blog banner

Exploring Arcadia’s Cowboy Culture, Peace River & Hidden Attractions

Blog banner

Disk Scheduling

Blog banner

?Why Social and Emotional Skills Matter More Than ABCs in Early Years?

Blog banner

Therapy Myths That Need to End in 2025

Blog banner

ODOO

Blog banner

undefined

Blog banner

Starvation

Blog banner

THREADS (assignment 1)

Blog banner

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

Blog banner

Direct Memory Access

Blog banner

Raising mental health burden: A global and Indian perspective

Blog banner

PHISHING

Blog banner