wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Deadlock and Starvation

profile
Krishna Rao
Aug 14, 2024
0 Likes
0 Discussions
108 Reads

Deadlock occurs when each process holds a resource and wait for other resource held by any other process. Necessary conditions for deadlock to occur are Mutual Exclusion, Hold and Wait, No Preemption and Circular Wait. In this no process holding one resource and waiting for another get executed. For example, in the below diagram, Process 1 is holding Resource 1 and waiting for resource 2 which is acquired by process 2, and process 2 is waiting for resource 1. Hence both process 1 and process 2 are in deadlock.



Starvation is the problem that occurs when high priority processes keep executing and low priority processes get blocked for indefinite time. In heavily loaded computer system, a steady stream of higher-priority processes can prevent a low-priority process from ever getting the CPU. In starvation resources are continuously utilized by high priority processes. Problem of starvation can be resolved using Aging. In Aging priority of long waiting processes is gradually increased.


Comments ()


Sign in

Read Next

Virtual Memory - Explaination, Working, Steps

Blog banner

Gamer life

Blog banner

THE INPACT OF SOCIAL MEDIA!

Blog banner

Why Kanye West (Now Ye) is the GOAT: A Legacy Beyond Music

Blog banner

SQL Injection Techniques

Blog banner

GIS in Mapping and landslide alert in Bangladesh

Blog banner

Modern OS

Blog banner

File management -disha parekh

Blog banner

Direct memory access

Blog banner

Predictive Analytics: How Data Science Predicts Trends(Weather ,Stock Market,Sales Forecasting ).

Blog banner

LINUX

Blog banner

Cache Memory

Blog banner

Why Moms Are Choosing Customised School Accessories Over Generic Products?

Blog banner

OS- Assignnment 1

Blog banner

"Mahakali cave"

Blog banner

How can parents support a child’s mental health?

Blog banner

Toothache Causes: Common Tooth Pain Reasons & When to See a Dentist

Blog banner

PROCESS STATE:

Blog banner

Memory Management of Operating System(OS)

Blog banner

Getting to Kashmir: Alternative to the Jammu-Srinagar highway

Blog banner

Use It or Lose It: Why November Is the Best Time to Claim Your Dental Extras and Medicare CDBS Before Year-End

Blog banner

Deadlock

Blog banner

The Essential Guide to Dynamic Arrays vs. Linked Lists: Which to Use and When ?

Blog banner

Why Meal Maharaj Prioritises Seasonal Vegetables in Every Meal Box

Blog banner

Friendship

Blog banner

Teamwork

Blog banner

Modern operating systems (OS)

Blog banner

How HRMS, Task Management, and Team Chats Can Improve Workplace Productivity

Blog banner

MEMORY MANAGEMENT

Blog banner

Ola

Blog banner

Can ChatGPT Answer All My Questions About Life?

Blog banner

Cache memory

Blog banner

KASHMIR TRIPS

Blog banner

Virtual memory

Blog banner

How to invest in Indian Stock Market ? ~ Tutorial 1

Blog banner

A MODERN OPERATING SYSTEM

Blog banner

MODERN OPERATING SYSTEM

Blog banner

Google App Engine

Blog banner

Memory

Blog banner

My Favorite Country

Blog banner

Hosting basics

Blog banner

Session Hijacking Techniques

Blog banner