wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Starvation

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

Reconnaissance

Blog banner

Music

Blog banner

Top 5 Places To Stay And Visit In Berlin, Germany

Blog banner

Studying Denial of service attack using DOSHTTP tool

Blog banner

Reclaim Your Bite and Beauty: All About Dental Restorative Treatments

Blog banner

GIS REMOTE SENSING

Blog banner

BUSINESS MODELS OF E COMMERCE

Blog banner

CYBER FORENCIS: PAST, PRESENT AND FUTURE.

Blog banner

Healthy Indian Comfort Foods That Are Both Nutritious and Delicious

Blog banner

Office Lunch Problems in Mumbai and How Tiffin Services Solve Them

Blog banner

Balance

Blog banner

Electronic Evidence in Cyber Forensics

Blog banner

Types of Hackers.

Blog banner

Understanding Loneliness: Why We Feel Disconnected in a Connected World (Part -1)

Blog banner

Is Social Media Marketing The Next Wave Of Digital Marketing?

Blog banner

Remote Work in 2026

Blog banner

Semaphores

Blog banner

All you need to know about Cassandra

Blog banner

Big O Notation

Blog banner

evolution of operating system - Disha Parekh

Blog banner

I/O Management and Disk Scheduling

Blog banner

THREADS (assignment 1)

Blog banner

Os(Computer security threats)

Blog banner

Memory input output management

Blog banner

Navigation With Indian Constellation(NavIC) by ISRO in Geographic Information Systems

Blog banner

Elements and Principles of Photography

Blog banner

File management

Blog banner

What is a Malware ?

Blog banner

Getting into Anime

Blog banner

E-Governance

Blog banner

Why Meal Maharaj Prioritises Seasonal Vegetables in Every Meal Box

Blog banner

Deadlock and Starvation

Blog banner

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

Blog banner

KASHMIR TRIPS

Blog banner

HOW CAN SOCIAL MEDIA MAKE YOU HAPPIER?

Blog banner

Cloud Forensic Tools And Storage :A Review Paper

Blog banner

Fudgy Tahini Date Chocolate Bars

Blog banner

Memory management

Blog banner

A little bit of salt is all the hash needs!

Blog banner

What is Minting & Mining

Blog banner

Data Mining

Blog banner

How to Conquer Depression ?

Blog banner