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

Rock, Paper, Scissors Game in Common Lisp

Blog banner

Memory Management

Blog banner

Jira Software

Blog banner

From Procrastinator to Performer: How to Beat the Last-Minute Rush

Blog banner

Marvel Cinematic Universe

Blog banner

Virtual Machine

Blog banner

Importance of Website

Blog banner

Deadlock

Blog banner

LEMON PICKLE (NIMBU KA ACHAR)

Blog banner

Basic Security For SOAP Services

Blog banner

An Approach To Spyware Detection And Removal

Blog banner

Objectives and functions of Operating System...

Blog banner

26/11 The Black Day Of Mumbai

Blog banner

Operating System Objectives and Functions

Blog banner

Explain the concept of ( MIS) Management information systems

Blog banner

Facebook marketing

Blog banner

ITIL Version 3 and 4 differenciation?

Blog banner

Biometric Authentication and Privacy: Balancing Ethical Concerns

Blog banner

Scala - a programming tool

Blog banner

Blockchain Security Technique

Blog banner

Everything You Need for a Perfect Stay in Arcadia, Florida, USA.

Blog banner

The New Classic: Indo Western Patola Outfits for Today’s Woman

Blog banner

Travel: Everything Everywhere!

Blog banner

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

Blog banner

Man is free by the birth .

Blog banner

How Puppet Shows and Role Play Teach Empathy to Preschoolers

Blog banner

Blog on health and fitness

Blog banner

Article on different management system

Blog banner

Password Generator - Lisp

Blog banner

File Management In OS

Blog banner

Hosting basics

Blog banner

Getting started with Android Studio

Blog banner

ASANA- A Management System.

Blog banner

File management

Blog banner

Artificial Intelligence (AI)

Blog banner

How To Secure Operating Systems ?

Blog banner

ahh wait a min

Blog banner

CyberSecurity Color Wheel

Blog banner

Why Summer Break Is Important for Emotional and Cognitive Growth?

Blog banner

Esri India launches Policy Maps.

Blog banner

Automating OSINT tasks for efficient Cyber Forensics Investigations

Blog banner

Data Analytics in Data Science

Blog banner