wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Deadlock and Starvation

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

Blog banner

How to use GIT & GITHUB

Blog banner

Khau Galli – Vile Parle

Blog banner

Modern operating system

Blog banner

Threads

Blog banner

A little bit of salt is all the hash needs!

Blog banner

How To Invest in Indian Stock Market For Beginners. ~ Tutorial 2 (NSDL And CSDL) Continued...

Blog banner

Cache Memory

Blog banner

Evolution of Operating system

Blog banner

Therapy Myths That Need to End in 2025

Blog banner

Cyber Attacks -- Trends Patterns and Security Countermeasures

Blog banner

A True Friendship

Blog banner

Data carving - using hex editor

Blog banner

Modern Operating System - Suren Kotian

Blog banner

Threads and concurrency

Blog banner

Revolutionary AI Tool: ChatGPT

Blog banner

Pooja Silver

Blog banner

The Impact of Tolerances and Wall Thickness on Pipeline Integrity

Blog banner

Odoo

Blog banner

INTRODUCTION

Blog banner

Understanding Toddler Tantrums: What They Really Mean

Blog banner

Importance Of Education.

Blog banner

Is Social Media Marketing The Next Wave Of Digital Marketing?

Blog banner

Jamming Attacks in Network Security: Disrupting Communication Signals

Blog banner

Culture Of Ladakh

Blog banner

Loneliness

Blog banner

Computer security techniques

Blog banner

10 Signs your Computer has Virus

Blog banner

21ST CENTURY PATRIARCHY

Blog banner

Use It or Lose It: Why November Is the Best Time to Claim Your Dental Extras and Medicare CDBS Before Year-End

Blog banner

Understanding Portion Control: How Much Food Do You Really Need?

Blog banner

Threads in OS

Blog banner

Blockchain

Blog banner

Domain Name System

Blog banner

Docker Framework

Blog banner

Travelling with Your Four-Legged Family Member: Why Oak Tree Hotel Is Arcadia’s Best Pet-Friendly Stay

Blog banner

How to tie a Tie

Blog banner

Deadlock

Blog banner

Memory Management

Blog banner

Socket Programming in Java

Blog banner

Things You Should Leave Behind In 2025, Whilst In 2026

Blog banner

Memory Management in Operating System

Blog banner