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

Top 5 Tech Innovations of 2018

Blog banner

Distributed Denial of Service (DDoS) attack

Blog banner

From Model Mistakes to Metrics

Blog banner

The Art of Slow Fashion: Why Patola Defines Sustainable Luxury

Blog banner

Constrained Management in IT

Blog banner

RAID_142

Blog banner

What is semaphore in operating system?

Blog banner

Security Issues and Countermeasures

Blog banner

Kernel in Operating System

Blog banner

Real-time Scheduling - 53003230061

Blog banner

INTRODUCTION

Blog banner

Socket Programming in Java

Blog banner

QUANTUM COMPUTING IN SECURITY:A GAME CHANGER IN DIGITAL WORLD

Blog banner

Man In The Middle Attack

Blog banner

Malicious softwares

Blog banner

I/O Buffering

Blog banner

CoWIN

Blog banner

Tracking Emails & Email Crimes

Blog banner

CSI and Organizational Change

Blog banner

Disk scheduling

Blog banner

Consumer to consumer business mode

Blog banner

Deadlocks in Operating Systems

Blog banner

10 Unknown facts about India's Independence

Blog banner

K-means use cases

Blog banner

Short note on expert system

Blog banner

Layers Of Blockchain

Blog banner

Data Structures

Blog banner

Explain Kernel in OS

Blog banner

Operating system

Blog banner

Importance Of Education.

Blog banner

38_Network Sniffing Techniques_SBC

Blog banner

Health is Wealth

Blog banner

To travel is to live

Blog banner

I Personally

Blog banner

Linux 94

Blog banner

Operating system and overviews

Blog banner

What is thread and multithreading ?

Blog banner

GraphQL

Blog banner

I/O buffer and its techniques

Blog banner

Disk Management

Blog banner

FREE VERSION OF G-MAIL

Blog banner

A Statistical Analysis of Player Performance and their Value in cricket

Blog banner