wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Starvation

profile
Omkar Bhube
Aug 15, 2024
0 Likes
0 Discussions
73 Reads

Starvation in operating systems (OS) occurs when a process is perpetually denied the necessary resources to proceed with its execution. This usually happens when a scheduling algorithm continuously favors other processes, leading to the affected process being delayed indefinitely. Starvation is often associated with priority-based scheduling, where lower-priority processes may never get CPU time because higher-priority processes keep taking precedence. To mitigate starvation, techniques like *aging* can be employed, where the priority of a waiting process is gradually increased over time to ensure it eventually gets the necessary resources.


Causes of Starvation:

Priority Scheduling: In priority-based systems, higher-priority processes can continuously preempt lower-priority ones, leading to the lower-priority processes never getting scheduled.Resource Contention: When multiple processes are competing for limited resources, a process might be continuously bypassed in favor of others, especially if the resource allocation is biased.Non-preemptive Scheduling: In systems where a process cannot be preempted once it starts, longer processes can monopolize the CPU, causing others to starve.


Solutions:

Aging: This is a common solution where the priority of a waiting process is gradually increased the longer it waits, ensuring that it will eventually be executed.Fair Scheduling

Algorithms: Some algorithms, like Round-Robin or Multilevel Queue Scheduling with time-sharing, are designed to minimize the chances of starvation by ensuring that all processes get some CPU time.Resource Allocation Policies: Implementing fair resource allocation policies can help in reducing contention and ensuring that all processes receive the resources they need in a timely manner.


Comments ()


Sign in

Read Next

The Role of Cyber Forensics in Criminology

Blog banner

Interrupts

Blog banner

Power of words

Blog banner

GEOLOGY AND GEO-TECTONIC FRAME WORK OF WESTERN BASTAR CRATON

Blog banner

File system implementation

Blog banner

Virtual Machine

Blog banner

Cyber Forensics

Blog banner

note taker app

Blog banner

WINDOWS I/ O

Blog banner

MOBILE DEVICE FORENSIC

Blog banner

I/O Buffering

Blog banner

What is a Malware ?

Blog banner

Paid Email

Blog banner

Having passion in life

Blog banner

Privacy LAWs in IT

Blog banner

15 Websites that will make your life easier ...!!!

Blog banner

Threads in OS

Blog banner

Data Visualization in Decision-Making

Blog banner

Overcoming the bedtime brushing Battle with Dr. Roxanne Irani, Dentist in Maroubra

Blog banner

Cyber-crime Investigation and Future Directions

Blog banner

Theads

Blog banner

Nature’s Brush on Silk: The Secret Behind Patola Colours

Blog banner

MUTUAL EXCLUSION

Blog banner

Dangers of Using Public WiFis

Blog banner

Modern operating system

Blog banner

Mental Health

Blog banner

Disk cache

Blog banner

WHAT IS SNAPCHAT AND HOW DOES IT WORK?

Blog banner

IP ADDRESS

Blog banner

Malicious softwares

Blog banner

Sagar Parikrama

Blog banner

Why Travellers from Miami & Orlando Are Visiting Arcadia for Weekend Getaways?

Blog banner

All you need to know about “On-page SEO”

Blog banner

Concurrency:Deadlock and Starvation

Blog banner

Cache Memory(142)

Blog banner

CRISP-DM Methodology

Blog banner

Metasploit

Blog banner

Synchronization

Blog banner

Digital Marketing - The new way to reach end consumer

Blog banner

Race Conditions

Blog banner

How to Encrypt and Decrypt Using GNU PGP

Blog banner

1.1 basic elements

Blog banner