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

JUSTICE FOR EVERY “BEZUBAAN ANIMAL”

Blog banner

Threads Concurrency: Mutual Exclusion and Synchronization

Blog banner

Advanced Persistent Threats (APTs)

Blog banner

Principles of Concurrency

Blog banner

Modern Operating System

Blog banner

My Favorite Country

Blog banner

Classification Vs Clustring? What's the diffrence?

Blog banner

Number Guessing game --lisp

Blog banner

Stephen Hawking : A Remarkable Physicist

Blog banner

Scala - a programming tool

Blog banner

JIRA SOFTWARE

Blog banner

What is the point of living if we can die at any moment of our lives ?

Blog banner

MODERN OPERATING SYSTEM

Blog banner

Firewall in Computer Network

Blog banner

OPERATING SYSTEM OBJECTIVES AND FAULT TOLERENCE.

Blog banner

Service Transition Process in ITSM

Blog banner

Routers

Blog banner

Memory management and virtual memory

Blog banner

Data Mining

Blog banner

From Model Mistakes to Metrics

Blog banner

Kernel Modes: User Mode vs. Kernel Mode - 80

Blog banner

Critical success factors

Blog banner

Earth with no trees

Blog banner

Ransomware

Blog banner

Virtual Memory

Blog banner

RACI model in IT services

Blog banner

IT service level agreement

Blog banner

Dekkers Algorithm

Blog banner

Understanding the 'Ambiverts'

Blog banner

How can denial-of-service(Dos) attacks be prevented?

Blog banner

Different types of scam Fraud

Blog banner

Memory Management

Blog banner

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

Blog banner

Service stratergy principles

Blog banner

The Role of cryptography in cyber security

Blog banner

The Art of Slow Fashion: Why Patola Defines Sustainable Luxury

Blog banner

Operating system

Blog banner

therapist blog

Blog banner

Virtual memory

Blog banner

Digital Footprints An Emerging Dimension of Digital Inequality

Blog banner

FREE VERSION OF G-MAIL

Blog banner

File management

Blog banner