wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Starvation

profile
Shreya Mantry
Sep 09, 2024
0 Likes
0 Discussions
69 Reads
  • WHAT IS STARVATION?

Starvation is a problem where a process runs out of resources in the OS because those resources are being utilized by other processes. That means that a process terminates without completion due lack of resources. Another name for starvation is Lived lock.


  • WHEN DOES STARVATION OCCUR?

Starvation can occur where a process is unable to obtain a necessary resource, such as CPU time, memory, or I/O resources, for an extended period. This typically occurs because other processes or threads are monopolizing the resource, preventing fair access for others. Resource allocation mechanisms within an operating system, like scheduling algorithms, are responsible for managing and preventing starvation.


  • CAUSES OF STARVATION

~ One of the main causes of starvation is an unfair scheduling policy. Some scheduling algorithms, such as the Priority Scheduling algorithm, favor high-priority processes over low-priority ones. If the system is busy with high-priority processes, the low-priority processes might be left waiting indefinitely.

~ Another cause could be resource allocation issues. If a certain process holds a resource that another process needs to continue execution, and it doesn't release it, the waiting process can starve


  • SOLUTION

Starvation can be cured using a technique that is regarded as aging. In aging, priority of process increases with time and thus guarantees that poor processes will equally run in the system. 


  • DIFFERENCE BETWEEN DEADLOCK AND STARVATION

Deadlock is a state where all processes become blocked and the processes are waiting for their resources to be released, whereas in a starvation situation, a process is never given a chance to execute because it is always preempted by a higher-priority process.


Comments ()


Sign in

Read Next

MySQL

Blog banner

Why Festivals Are the Best Classrooms for Young Minds?

Blog banner

Security issues

Blog banner

Data is an asset and it is your responsibility!

Blog banner

Why Peace River Is Florida’s Most Underrated Outdoor Adventure Destination?

Blog banner

Consumer to consumer business mode

Blog banner

Remote Work in 2026

Blog banner

Teamwork

Blog banner

Why Consistency in Eating Habits Matters and How Meal Maharaj Makes It Easy

Blog banner

Dekkers Algorithm

Blog banner

Question

Blog banner

Animal’s have my heart

Blog banner

My Favorite Country

Blog banner

Hubspot

Blog banner

Blog on Smartsheet.

Blog banner

Game Theory in Blockchain

Blog banner

The khan mehtab transforming the modular switches company

Blog banner

Virtual memory

Blog banner

Beatbox

Blog banner

Mumbai

Blog banner

Mail merge

Blog banner

Types of Threads

Blog banner

Evolution of Operating system.

Blog banner

Software Piracy & Online Data Protection in Digital World

Blog banner

RAID

Blog banner

Scala - a programming tool

Blog banner

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

Blog banner

A Happier Workplace Starts with Healthy Lunches by Meal Maharaj

Blog banner

LinkedIn: Watch out for these 7 upcoming updates in 2023

Blog banner

Riddhi Miyani 53003220140

Blog banner

Spyware

Blog banner

JUSTICE FOR EVERY “BEZUBAAN ANIMAL”

Blog banner

semaphores in os

Blog banner

Dr. Venkadavarahan

Blog banner

Interrupts in OS

Blog banner

Classification Algorithms (Decision trees, SVM, Logistic regreession)

Blog banner

Web Site

Blog banner

IP Address

Blog banner

Threads

Blog banner

Emotional Intelligence in Children: Why It Is as Important as Academics

Blog banner

Memory management and virtual memory

Blog banner

How Preschool Annual Day Shapes Confidence, Emotions, and Growth

Blog banner