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

Wiretapping

Blog banner

Facebook marketing

Blog banner

5 Powerful Mindset Shifts To Make 2026 Your Breakthrough Year

Blog banner

Virus

Blog banner

Artificial Intelligence (AI)

Blog banner

Multithreading in Operating System

Blog banner

Virtual Machine

Blog banner

Fitness

Blog banner

All you need to know about “On-page SEO”

Blog banner

Steganography and Steganalysis

Blog banner

Discover The Top 3 Places To Stay in London

Blog banner

Demystifying Cryptography: A Beginner's Guide

Blog banner

Why is ITSM important in IT organization?

Blog banner

Electronic Evidence in Cyber Forensics

Blog banner

Asana

Blog banner

Harsh Rathod

Blog banner

Cache Memory in Operating Systems

Blog banner

Memory management

Blog banner

Deadlock

Blog banner

Processes : Process description and control

Blog banner

Memory Management

Blog banner

Pooja Silver

Blog banner

(Input/Output) in os

Blog banner

Be you

Blog banner

Busted : Common Web Security Myths

Blog banner

"Life as a Part-time Student"

Blog banner

Friendship

Blog banner

Modern Operating System - Khush bagaria

Blog banner

Evolution of Operating System

Blog banner

Threat management

Blog banner

Modern operating systems (OS)

Blog banner

What does the Australian summer have in store for your oral health?

Blog banner

Benefits of yoga and meditation

Blog banner

Save Girl Child

Blog banner

Blog on health and fitness

Blog banner

THE INPACT OF SOCIAL MEDIA!

Blog banner

Deadlock and Starvation

Blog banner

BITCOIN WALLET

Blog banner

Digital Marketing - The new way to reach end consumer

Blog banner

Linux VServer Architecture

Blog banner

All you need to know about Website Traffic

Blog banner

Deadlock Prevention

Blog banner