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

Article on IT development trends

Blog banner

Loneliness

Blog banner

Developments in Modern Operating Systems

Blog banner

WINDOWS I/ O

Blog banner

Security Breaches in Stock market trading

Blog banner

Disk scheduling

Blog banner

Real-Time Operating Systems (RTOS) Deep Explanation

Blog banner

Deadlock in Operating System

Blog banner

WAKE UP ITS FOOD o'CLOCK...!!!!!

Blog banner

Why is it hard to design an Operating Systems ?

Blog banner

Data Science in Everyday Life (like a phone, shopping cart, or social media icons)

Blog banner

ahh wait a min

Blog banner

A-B-C of Networking: Part-3 (Topology [Ring, Tree, Mesh])

Blog banner

Game via listing method

Blog banner

What are the different types of E-mail crime and process of email forensic?

Blog banner

Privacy LAWs in IT

Blog banner

Kafka - A Framework

Blog banner

Introduction to Virtual Memory - 080

Blog banner

Processes: Process Description and Control.

Blog banner

An Approach To Spyware Detection And Removal

Blog banner

OS Assignment 3 Deadlock

Blog banner

History of ITIL

Blog banner

Direct Memory Access

Blog banner

SPEM

Blog banner

Explain Multiprocessors

Blog banner

STUDY OF SYSTEM HACKING TOOLS

Blog banner

Deadlock

Blog banner

Modern Operating System

Blog banner

APACHE KAFKA

Blog banner

Importance Of Education.

Blog banner

How to lose belly fat

Blog banner

Web Site

Blog banner

World’s rarest passport owned by 500 people.

Blog banner

Mumbai Metro 3

Blog banner

Water Resources are about to exhaust...

Blog banner

Multiprocessor and Multicore Organization

Blog banner

"The Benefits of Using GIS in Agriculture"

Blog banner

Virtual memory

Blog banner

Session Hijacking

Blog banner

Disk cache

Blog banner

MySQL

Blog banner

Junk food vs healthy food

Blog banner