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

John Titor: The Time Traveler

Blog banner

Disk cache

Blog banner

VIRTUAL MEMORY

Blog banner

Tracking Emails & Email Crimes

Blog banner

1.1 basic elements

Blog banner

Hypothesis Testing in Data Science

Blog banner

Virtual Machine

Blog banner

IS CONVERTING AMBITION INTO PROFESSION?

Blog banner

This Windows 11 encryption bug may cause data damage

Blog banner

Indian Food

Blog banner

Dudhasagar waterfall ?

Blog banner

A Review on Data Acquisition in Cyber Forensics

Blog banner

Virtual Memory

Blog banner

The Impact of Cyber Forensics on Corporate Governance and Compliance

Blog banner

Time Series Analysis

Blog banner

Disk Management

Blog banner

Unlocking the Secrets: Basic Operations of Computer Forensic Laboratories

Blog banner

DATA BREACH CAUSES CHALLENGES PREVENTION AND FUTURE DIRECTIONS

Blog banner

Solving Problems with AI: The Power of Search Algorithms

Blog banner

LEMON PICKLE (NIMBU KA ACHAR)

Blog banner

How covid-19 impacted Social media ad spend forecast globally

Blog banner

Dekkers Algorithm

Blog banner

Constrained Management in IT

Blog banner

Linux Virtual Machine Process Scheduling

Blog banner

Can ChatGPT Answer All My Questions About Life?

Blog banner

HTML vs HTML5

Blog banner

What is metaverse?

Blog banner

Deadlock

Blog banner

How GIS in Agriculture Eliminates Guesswork

Blog banner

Article on team management software

Blog banner

Electronic Funds Transfer

Blog banner

The launch of UniMap by HERE

Blog banner

Title: Modern Operating Systems: Powering the Digital Era

Blog banner

"Games and the future"

Blog banner

Office Lunch Problems in Mumbai and How Tiffin Services Solve Them

Blog banner

Protect yourself from System Hacking with these Simple Steps

Blog banner

DNS Cache

Blog banner

MD5 Collisions and the impact on computer forensics

Blog banner

The evolution of OS

Blog banner

THE ACTORS LIFE

Blog banner

The Khan mehtab transforming the modular switches

Blog banner

CYBER FORENCIS: PAST, PRESENT AND FUTURE.

Blog banner