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

LinkedIn

Blog banner

Firewall

Blog banner

LEMON PICKLE SWEET AND MILD HOT

Blog banner

RAID_142

Blog banner

Multiple-Processor Scheduling in Operating System

Blog banner

Disk cache

Blog banner

The Impact of Cyber Forensics on Corporate Governance and Compliance

Blog banner

?How long does wisdom tooth pain last?

Blog banner

“Shot on iPhone” : A campaign by Apple that turned into a prodigy

Blog banner

Dancing Classes In Mumbai

Blog banner

Deadlock and Starvation

Blog banner

Why Are So Many Adults Getting Diagnosed with ADHD?

Blog banner

Malware Defense

Blog banner

Memory Management

Blog banner

A Weekend of Wildlife, Rivers, and Relaxation in Southwest Florida

Blog banner

What is Amazon?

Blog banner

File system implementation

Blog banner

Are Social Media Paid Campaigns Worth It?

Blog banner

Loneliness

Blog banner

Assignment 2

Blog banner

Smitten Kitchen Keepers

Blog banner

File management

Blog banner

Cyber Bullying - Neeta Vonkamuti

Blog banner

Service Validation and Testing during the Design Phase

Blog banner

Blockchain Security Technique

Blog banner

The evolution of OS

Blog banner

OLA

Blog banner

Vikrant’s first blog

Blog banner

How Preschool Annual Day Shapes Confidence, Emotions, and Growth

Blog banner

ONLINE NEWSROOMS

Blog banner

Data Storytelling: Turning Analysis into Business Action

Blog banner

Cache memory

Blog banner

A-B-C of Networking: Part-3 (Topology [Bus & Star])

Blog banner

Memory heirchy

Blog banner

Who decides your overthinking, anyway?

Blog banner

Virtual Memory

Blog banner

Computer Forensics and its Impact in Business Environment

Blog banner

What Your Child Learns During Free Play (That You Might Not Notice)

Blog banner

VIRTUAL MACHINES

Blog banner

Blog name

Blog banner

Mendeley (management software)

Blog banner

I/O Buffering

Blog banner