wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Deadlock and Starvation

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

Hacking of web server and application

Blog banner

Dal Bafla Recipe

Blog banner

Social Engineering

Blog banner

Deadlocks

Blog banner

5 Common Faults In Construction Tenders

Blog banner

Microsoft Windows Overview

Blog banner

QUANTUM COMPUTING IN SECURITY:A GAME CHANGER IN DIGITAL WORLD

Blog banner

SECURITY TOOLS

Blog banner

Have You Explored India Yet?

Blog banner

Natural Language Processing(NLP)

Blog banner

LinkedIn

Blog banner

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

Blog banner

evolution of operating system - Disha Parekh

Blog banner

What is OS Fingerprinting?

Blog banner

Modern Operating System - Suren Kotian

Blog banner

How to write a cover letter

Blog banner

Different memory allocation strategies

Blog banner

Types of Hackers.

Blog banner

India Digital Personal Data Protection Act, 2023

Blog banner

Video games

Blog banner

A Survey of Anti-Forensic Techniques: Methods, Challenges, and Countermeasures

Blog banner

Sage business cloud accounting

Blog banner

Life of a 2020-2021 student

Blog banner

Getting into Anime

Blog banner

Expressing and Measuring Risk (Risk Management)

Blog banner

VIRTUAL MACHINES

Blog banner

Linker

Blog banner

Deadlock

Blog banner

File System

Blog banner

THE ROLE OF CYBER FORENSICS IN CRIMINOLOGY

Blog banner

GIS Topography

Blog banner

The Difference Between Plaque and Tartar Explained Simply

Blog banner

5 ways to save money on catering services in Mumbai

Blog banner

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

Blog banner

Breaking the Cycle of Loneliness : Protecting your Mental Health Through meaningful Connection ( Part — 2)

Blog banner

Im Photographer

Blog banner

Virtual Memory

Blog banner

Deadlock

Blog banner

PERSONALITY DEVELOPMENT

Blog banner

An Overview of Virtual Machines

Blog banner

MODERN OPERATING SYSTEM

Blog banner

The Future of Cybersecurity: Trends, Challenges, and Strategies

Blog banner