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

5 Things I As A Dentist Would Never Do (And What You Can Learn From It)

Blog banner

Dos (Denial of service) Attack

Blog banner

Patola Outfits for the Modern Wardrobe: Reviving Indian Handloom in Style

Blog banner

HTML vs HTML5

Blog banner

Depression

Blog banner

Virtual memory

Blog banner

Why Extreme Opinions Are Rising: Psychological Insights into Society’s Divides

Blog banner

Dekkers Algorithm : Ensuring Safe Process Synchronization

Blog banner

Types of Malware in Cyber Security

Blog banner

Memory Management

Blog banner

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

Blog banner

The Golden Temple , Amritsar

Blog banner

How Cyber Forensics use in AI

Blog banner

De-Coding Love

Blog banner

Animal’s have my heart

Blog banner

The Psychology of Diversity, Equity & Inclusion: How Inclusive Workplaces Boost Productivity

Blog banner

Landslide Hazard

Blog banner

“CONSISTENCY” in Social Media Marketing

Blog banner

Starvation

Blog banner

Why Moms Are Choosing Customised School Accessories Over Generic Products?

Blog banner

Operating Systems Overview

Blog banner

FAMILY WHERE LIFE BEGINS....

Blog banner

Operating System Objectives and Functions

Blog banner

Characteristics of Etherum

Blog banner

(Input/Output) in os

Blog banner

Random Forests

Blog banner

10 Unsolved Mysteries all over the world

Blog banner

Blockchain Security Technique

Blog banner

Operating system evolution

Blog banner

Linux Threads:

Blog banner

What is Segmentation?

Blog banner

Tableau

Blog banner

Defining youtubr

Blog banner

OS Evolution Achievements

Blog banner

Data Science & AI

Blog banner

Deadlock in Operating System

Blog banner

Never give up

Blog banner

Memory Management

Blog banner

What is Spyware? and examples of them.

Blog banner

Define Instagram.

Blog banner

The Right way of cooking

Blog banner

Buffers in Operating Systems

Blog banner