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

PHONE TECHNOLOGY

Blog banner

PODIO

Blog banner

Concurrency:Deadlock and Starvation

Blog banner

IT GOVERNANCE

Blog banner

Vulnerability Assessment (Vulnerability Analysis)

Blog banner

Decoding Confusion Matrix

Blog banner

Virtual memory

Blog banner

Tomato Butter Sauce with Bucatini

Blog banner

Memory Management

Blog banner

Electronic Funds Transfer

Blog banner

Pilgrimage at LOC: A privilege and a paradox

Blog banner

Install Ubuntu Easily

Blog banner

Digital Forensics Challenges and Tools

Blog banner

Fitness

Blog banner

Fault Tolerance

Blog banner

Flipkart

Blog banner

Incorporating Automation into Digital Forensics.

Blog banner

Wedding photographer

Blog banner

How To Secure Operating Systems ?

Blog banner

Facebook Shut Down an AI Program!!! Facebook AI bots became Terminators???

Blog banner

GIS

Blog banner

RAID_142

Blog banner

Interrupts

Blog banner

Memory managment

Blog banner

What are NFT s?

Blog banner

Respondo Launches Revolutionary Video Discussion App

Blog banner

Clarizen

Blog banner

Ethical Issues in Data Science and Role of Data Science in Smart Cities

Blog banner

Security Issues and Countermeasures

Blog banner

Note Taker App

Blog banner

Royal enfield

Blog banner

Importance Of Blockchain

Blog banner

Constrained Management in IT

Blog banner

Introduction to Data Science: Life Cycle & Applications

Blog banner

Biometric Authentication and Privacy: Balancing Ethical Concerns

Blog banner

38_Network Sniffing Techniques_SBC

Blog banner

Earth with no trees

Blog banner

The art of being alone

Blog banner

Constrains in service design

Blog banner

TRAIN TRAVELING

Blog banner

Random Forests

Blog banner

File management -disha parekh

Blog banner