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

Network Forensics

Blog banner

Answer

Blog banner

How to lose belly fat

Blog banner

CRISP-DM Methodology

Blog banner

memory managment

Blog banner

Danger assessment in GIS

Blog banner

Photography

Blog banner

EVOLUTION OF THE MIRCOPROCESSOR

Blog banner

Digital Balance: Keeping Children Mindful in the Screen Age

Blog banner

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

Blog banner

social media issue

Blog banner

Broken Authentication Attacks

Blog banner

BUFFER OVERFLOW_142

Blog banner

Virtual machine and virtualizing

Blog banner

You'll get to know about Pankaj Negi

Blog banner

Firewall / IDS Evasion Techniques

Blog banner

LIMITED EDITION

Blog banner

Dal Bafla Recipe

Blog banner

Types of Viruses

Blog banner

MODERN OPERATING SYSTEM

Blog banner

Landslide Hazard

Blog banner

How to use open SSL for web server - browser communication

Blog banner

Ethical Hacking

Blog banner

Fitness regime by Deepesh

Blog banner

Buffer Overflow

Blog banner

Data carving - using hex editor

Blog banner

Why is it hard to design an Operating Systems ?

Blog banner

The launch of UniMap by HERE

Blog banner

Exploring the Power of Encase Forensic Tools: Unraveling Digital Mysteries

Blog banner

Cache Memory(142)

Blog banner

Modern operating system

Blog banner

Why Consistency in Eating Habits Matters and How Meal Maharaj Makes It Easy

Blog banner

Google App Engine

Blog banner

MACHINE LEARNING

Blog banner

Not anti-social, but pro-solitude

Blog banner

Friendship

Blog banner

MySQL

Blog banner

What if COVID does not exist!

Blog banner

Race Condition

Blog banner

Trello ( management software)

Blog banner

Online Education

Blog banner

I/O Management and Disk Scheduling

Blog banner