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

File management

Blog banner

Tea, Coffee, Red Wine, and Teeth: A Stain Survival Guide

Blog banner

What are Virtual Machines

Blog banner

Memory input output management

Blog banner

Navigation With Indian Constellation(NavIC) by ISRO in Geographic Information Systems

Blog banner

Starvation

Blog banner

Self managing devices

Blog banner

Different types of scam Fraud

Blog banner

" THE ANSWERS THAT LED INDIAN BEAUTIES TO THE MISS UNIVERSE HISTORIC WIN. "

Blog banner

What is Network Security?

Blog banner

Analysis of Digital Evidence In Identity Theft Investigations

Blog banner

Advanced Persistent Threats (APTs)

Blog banner

Retiring ISS

Blog banner

India Digital Personal Data Protection Act, 2023

Blog banner

KPMG (Klynveld Peat Marwick Goerdeler)

Blog banner

Principles of Service Operation

Blog banner

PODIO

Blog banner

Throttle engine ’Sneak peek into the future’

Blog banner

Getting started with Android Studio

Blog banner

The Bold Digital Marketing Moves That Made Durex India’s Second-Largest Condom Brand

Blog banner

Which Smartphone Company Has the Largest Market Share in India?

Blog banner

GIS Topography

Blog banner

Impacts of Data Breach On Companies Challenges and Prevention

Blog banner

Virtual Memory

Blog banner

File management In Operating System

Blog banner

BLOCKCHAIN MACHANISM

Blog banner

Race Condition in Operating Theatre

Blog banner

undefined

Blog banner

Memory Management

Blog banner

Cache Memory in Operating Systems

Blog banner

How return on investment is defined in IT services

Blog banner

THREADS (assignment 1)

Blog banner

bulk email software

Blog banner

BrainGate Technology

Blog banner

Tableau

Blog banner

Culture Of Ladakh

Blog banner

All you need to know about Cassandra

Blog banner

Deadlock and Starvation

Blog banner

Proton mail

Blog banner

10 Reasons to date your best friend

Blog banner

'Positivity in life'

Blog banner

Memory management

Blog banner