wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Assignment-3

profile
Nikita Mitna
Sep 08, 2024
0 Likes
0 Discussions
57 Reads

What is Starvation

Starvation is a problem with resource management where a process runs out of resources in the OS because those resources are being utilised by other processes. This issue primarily arises in a priority-based scheduling system where requests with high priority are processed first and those with low priority take longer to process.

What exactly does starvation mean in operating systems?

Problems arise when high-priority requests lead low-priority processes to become stalled for an extended period of time. The low-priority process cannot get the processor or resources because of a constant stream of high-priority demands. Starvation typically occurs when a task is postponed for an endless amount of time. The operating system requires the following resources to respond to process requests:

  • I/O access to disk or network
  • Memory
  • Disk space
  • Bandwidth of network
  • CPU time


What Leads to Starvation?

Following are a few causes of OS starvation:

  • If a higher priority operation uses a CPU continuously, a low priority process may wait indefinitely in starvation.
  • Deadlock does not happen because low-priority processes do not interact with resources, but because they are stuck in a waiting state, there is a risk of starving.
  • Thus, hunger is a fail-safe strategy, as it prevents deadlock temporarily but has an overall negative impact on the system.
  • The main contributor to starving may be the fact that not enough resources are available to meet all needs.
  • There is a chance that a process may have to wait for a long time if a process selection is random.
  • Starvation can also happen when an improper resource allocation prevents a process from ever receiving a resource for use.


Various Approaches to Tackle Starvation

The following are some options for dealing with the starving condition in OS:

  • To make sure that resources are distributed equally, a freelancing manager should be in charge of CPU resource allocation.
  • Starvation happens as a result of random process method selection, which should be avoided.
  • To prevent starvation, the ageing criterion for processes should be taken into account while allocating resources.
  • To prevent starvation, a scheduling method with a priority queue can be utilised.
  • If the random approach must be employed, treat starvation by combining it with a priority queue.
  • The multilevel feedback queue can also be utilised to prevent operating system starvation.


Example:

The P2 process is given the highest priority in the example, while P1 is given the lowest priority. There are n processes that are ready to be executed, as shown in the diagram. As a result, P2 will enter the CPU as the process with the greatest priority, while P1 will continue to wait for its turn because P1 is low on the priority list for all other processes. Starvation is the term used to describe the state in which the process is waiting.

  • Causes of Starvation in OS:
  • If a higher priority operation uses a CPU continuously, a low priority process may wait indefinitely in starvation.
  • Resources are not available in sufficient quantities to meet all needs.
  • There is a chance that a process may have to wait for a long time if a process selection is random.
  • Due to improper resource allocation, a process is never given a resource to use for execution.
  • Various OS Starvation Management Techniques
  • To make sure that resources are distributed equally, a freelancing manager should be in charge of CPU resource allocation.
  • It is best to avoid selecting a process approach at random.
  • It is important to take processes' ageing requirements into account.
  • There is a chance that a process may have to wait for a long time if a process selection is random.
  • Starvation can also happen when an improper resource allocation prevents a process from ever receiving a resource for use.



Nikita Mitna

53003230109

Div-A



Comments ()


Sign in

Read Next

Southern Turkey Earthquake: Causes and Consequences of a Tragic Natural Disaster

Blog banner

What is Spyware? and examples of them.

Blog banner

Top 5 Post-Wedding Skin Care Tips

Blog banner

AI and Technology- Related Anxiety: Understanding the Psychological Impact of Living in an AI-Driven World

Blog banner

GIS Applications: How Different Industries are Leveraging Geospatial Data

Blog banner

Introduction to Data Science: Life Cycle & Applications

Blog banner

Analysis of Digital Evidence In Identity Theft Investigations

Blog banner

Environmental Management using GIS

Blog banner

Review on Recovering Deleted Files

Blog banner

Why am I never satisfied with my Life?

Blog banner

Modern operating system

Blog banner

The Secure Software Development Life Cycle (SDLC)

Blog banner

Modern operating systems (OS)

Blog banner

MEMORY MANAGEMENT (techniques)

Blog banner

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

Blog banner

Message Passing in OS

Blog banner

Data Science in Healthcare: Predicting Diseases

Blog banner

Deadlocks in Operating Systems

Blog banner

How Do I Get Rid of My People-Pleasing Behaviour?

Blog banner

How to Avoid being a Victim of Cybercrime

Blog banner

ARTICAL ON MANAGEMENT SYSTEM

Blog banner

OS DESIGN CONSIDERATIONS FOR MULTIPROCESSOR

Blog banner

The IT Service Lifecycle

Blog banner

Paginng In OS

Blog banner

Virtual memory

Blog banner

Multiple processor scheduling

Blog banner

Direct memory access (DMA)

Blog banner

Education: Key to your Prosperity

Blog banner

Mental Health

Blog banner

Memory management

Blog banner

How Much Protein Do You Really Need Every Day?

Blog banner

Top 5 Places To Stay And Visit In Berlin, Germany

Blog banner

How covid-19 impacted Social media ad spend forecast globally

Blog banner

MPL and how its effects?

Blog banner

Key to success in Sports

Blog banner

The Role of Teachers in Building a Child’s Confidence

Blog banner

Pink sauce pasta

Blog banner

Internet: The Vast Ocean Of Knowledge.

Blog banner

Best Time to Visit Arcadia, Florida & Why Oak Tree Hotel Is Always Ready

Blog banner

The Power of Teamwork: Learning Collaboration Through Everyday Activities

Blog banner

My favourite food

Blog banner

Understanding Endometriosis and Its Psychological Impact on Quality of Life

Blog banner