wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Starvation

profile
Shreya Mantry
Sep 09, 2024
0 Likes
0 Discussions
68 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

Virtual memory

Blog banner

HTML vs HTML5

Blog banner

Memory management

Blog banner

Measuring IT Risk

Blog banner

gis substation

Blog banner

differentiate thinking humanly and rationally

Blog banner

security controls

Blog banner

The Power of Teamwork: Learning Collaboration Through Everyday Activities

Blog banner

Oracle Corporation

Blog banner

THE ROLE OF CYBER FORENSICS IN CRIMINOLOGY

Blog banner

Video games

Blog banner

Rock, Paper, Scissors Game in Common Lisp

Blog banner

Modern Operating System

Blog banner

MoSCoW METHOD IN DATA SCIENCE

Blog banner

Severe landslides continue to cause concern in Joshimath, Uttarakhand

Blog banner

Kernel Memory Allocation In Linux.

Blog banner

File management

Blog banner

Deadlock

Blog banner

Deadlock and starvation in operating system

Blog banner

Never give up

Blog banner

Bitcoin sent using radio waves! No internet!

Blog banner

LinkedIn

Blog banner

Current Trends in GIS and Remote Sensing(Ocean Applications)

Blog banner

Dekkers Algorithm : Ensuring Safe Process Synchronization

Blog banner

IT Service as as Value Creation

Blog banner

VIRTUAL MACHINES

Blog banner

I/O buffer and its techniques

Blog banner

Benefits and drawback of web security.

Blog banner

Why Soft Skills Matter as Much as Grades?

Blog banner

Elements and Principles of Photography

Blog banner

Social Media.

Blog banner

Gis in agriculture and farming

Blog banner

Kernel in Operating System

Blog banner

Understanding Univariate, Bivariate, and Multivariate Analysis in Data Science

Blog banner

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

Blog banner

The Power of Forensic Watermarking in the Fight Against Content Piracy

Blog banner

Security issues

Blog banner

Big O Notation

Blog banner

You'll get to know about Pankaj Negi

Blog banner

First-Order Logic (FOL): The Foundation of Modern Logic

Blog banner

Fashion design

Blog banner

Dangers of Using Public WiFis

Blog banner