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

Threads

Blog banner

R Programming

Blog banner

Real-time Scheduling - 53003230061

Blog banner

A-B-C of Networking: Part-3 (Topology [Ring, Tree, Mesh])

Blog banner

E-commerce

Blog banner

HOW CAN SOCIAL MEDIA MAKE YOU HAPPIER?

Blog banner

SWEET SHREDDED MANGO CHUNDA (MANGO CHUNDA)

Blog banner

THE ROLE OF CYBER FORENSICS IN CRIMINOLOGY

Blog banner

Never give up

Blog banner

Deadlock and Starvation

Blog banner

Virtual Machine

Blog banner

What are the different types of E-mail crime and process of email forensic?

Blog banner

Proof-of-Stake (PoS)

Blog banner

Texting is actually better than talking in person

Blog banner

Automating OSINT tasks for efficient Cyber Forensics Investigations

Blog banner

File System

Blog banner

Malware

Blog banner

Steps to create an Ubuntu EC2 Instance with GUI in AWS

Blog banner

10 Signs your Computer has Virus

Blog banner

QUANTUM COMPUTING IN SECURITY:A GAME CHANGER IN DIGITAL WORLD

Blog banner

Telegram and it's features

Blog banner

Memory hierarchy

Blog banner

CYBER SECURITY CHALLENGES

Blog banner

Evolution of Operating system

Blog banner

Save Girl Child

Blog banner

Office Lunch Problems in Mumbai and How Tiffin Services Solve Them

Blog banner

How To Setup DVWA Using XAMPP on Windows

Blog banner

Esri India launches Policy Maps.

Blog banner

Constrained Management in IT

Blog banner

THE ACTORS LIFE

Blog banner

What is OS and its overview

Blog banner

NIKE

Blog banner

Supervised and unsupervised learning

Blog banner

ProofHub

Blog banner

Pipedrive

Blog banner

Concurrency management in operating systems

Blog banner

Synchronization

Blog banner

Optimization of operating system design

Blog banner

Crypto tax evasion

Blog banner

Eating Well With Meal Maharaj on Busy Workdays Without Cooking

Blog banner

Data Mapping

Blog banner

Exploring Florida Beyond the Obvious Tourist Trails

Blog banner