wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Deadlock and Starvation

profile
Krishna Rao
Aug 14, 2024
0 Likes
0 Discussions
89 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

Blog banner

Introduction to Solidity Programming for Blockchain Development

Blog banner

Business Engineering

Blog banner

What is Internet

Blog banner

What are Tenders its various types

Blog banner

How to write a cover letter

Blog banner

Disk cache

Blog banner

Race Condition in Operating Theatre

Blog banner

Some web vulnerabilities

Blog banner

Monday. com App

Blog banner

Mango Raisin Chutney (sweet mango raisin spread)

Blog banner

Toothache at night? What does this mean, and how to cope with it?

Blog banner

Little Habits, Big Impact: Daily Preschool Routines That Shape the Future

Blog banner

Telegram and it's features

Blog banner

FRIENDSHIP

Blog banner

Artical on FreshBooks

Blog banner

Socket Programming in Java

Blog banner

Blog name

Blog banner

Every body is beautiful

Blog banner

How Social Media Algorithms Will Work in 2026?

Blog banner

5 Stages of Digital Marketing

Blog banner

Disk Management

Blog banner

Is Brushing After Eating Damaging Your Teeth? (Fact or Myth)

Blog banner

Bharat Maps

Blog banner

GIS Topography

Blog banner

What is Anxiety? How to manage Anxiety?

Blog banner

ART AND CULTURE OF VRINDAVAN

Blog banner

Digital black market or dark net poses a national security threat?

Blog banner

A Short History of GIS

Blog banner

Software

Blog banner

AI and cyber Security

Blog banner

A Deep Dive

Blog banner

Memory input output management

Blog banner

Title: Modern Operating Systems: Powering the Digital Era

Blog banner

Dove’s Real Beauty Campaign- Case Study

Blog banner

Memory heirachy (Operating system)

Blog banner

Interrupts - Types, Working & Importance

Blog banner

VPN

Blog banner

My First Trek - Sondai, Karjat - Shoaib Malik

Blog banner

Hubspot

Blog banner

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

Blog banner

What is semaphore in operating system?

Blog banner