wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Starvation

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

"Can Lisp do Machine Learning?"

Blog banner

THE ACTORS LIFE

Blog banner

Process Creation

Blog banner

"Games and the future"

Blog banner

Sweet Mango Murabba

Blog banner

Article on Zoho Corporation

Blog banner

Stop Racism

Blog banner

Compromising Mobile Platforms

Blog banner

Memory heirchy

Blog banner

USES OF WHATSAPP

Blog banner

Domain Name System

Blog banner

RAID

Blog banner

Types of Malware in Cyber Security

Blog banner

DMZ: Your Secret Weapon for Data Security

Blog banner

Multiprocessor and Multicore Organization

Blog banner

What Function Does SEO Serve in Digital Marketing?

Blog banner

Os assignment

Blog banner

virtual machine

Blog banner

Steps to create an Ubuntu EC2 Instance with GUI in AWS

Blog banner

WomenEmpowerment

Blog banner

Exploring Florida Beyond the Obvious Tourist Trails

Blog banner

Best password managers: Reviews of the top products

Blog banner

Working with Sniffers for monitoring network communication

Blog banner

TRELLO

Blog banner

Traditional UNIX Scheduling

Blog banner

7 Perks of Getting Your Teeth Whitening Done Professionally

Blog banner

Mental Health

Blog banner

Study of Backdoor and Trojan tools

Blog banner

'C', 'C++' and 'Java': Head-to-Head

Blog banner

The Power of Forensic Watermarking in the Fight Against Content Piracy

Blog banner

How to Grow Your Brand on YouTube Without a Big Budget

Blog banner

Service transistion under difficult conditions

Blog banner

Importance of internet

Blog banner

The Right way of cooking

Blog banner

From Canoeing to Camping: The Perfect Nature Escape Near Arcadia

Blog banner

Hosting basics

Blog banner

The khan mehtab transforming the modular switches company

Blog banner

Life of a 2020-2021 student

Blog banner

The Rise of Evil Twin Attacks: A New Kind Of Spoofing Cyberattack

Blog banner

E-BUSINESS RISK MANAGEMENT

Blog banner

OS Assignment 3

Blog banner

Dental Problems That Start Small But Should Never Be Ignored

Blog banner