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

Virtual machine and virtualizing

Blog banner

E-BUSINESS RISK MANAGEMENT

Blog banner

Digital Marketing - The new way to reach end consumer

Blog banner

Introduction my self

Blog banner

RAID

Blog banner

DEVELOPMENTS LEADING TO MODERN OPERATING SYSTEMS

Blog banner

Education: Key to your Prosperity

Blog banner

Direct Memory Access

Blog banner

Answer

Blog banner

Cherish the Craft — Essential Tips to Maintain Your Patola Collection

Blog banner

Data Science in Healthcare: Predicting Diseases

Blog banner

MQTT (MQ Telemetry Transport) in Data Science

Blog banner

Explain DBMS in Brief

Blog banner

Sweet and Sour Mango Pickle (Gol Keri)

Blog banner

Direct memory access (DMA)

Blog banner

Incident management in ITSM

Blog banner

The Five Steps of Data Science

Blog banner

File sharing

Blog banner

Scala - a programming tool

Blog banner

CRISP-DM Methodology

Blog banner

OS Evolution Achievements

Blog banner

"Can Lisp do Machine Learning?"

Blog banner

“Shot on iPhone” : A campaign by Apple that turned into a prodigy

Blog banner

Race Conditions

Blog banner

Introduction to GIS

Blog banner

PHISHING

Blog banner

Top 5 Places To Stay And Visit In Berlin, Germany

Blog banner

File system

Blog banner

What is online marketing and why do you need to know about it ?

Blog banner

Data Analytics in Data Science

Blog banner

E-Cash (Electronic Cash)

Blog banner

CyberSecurity Color Wheel

Blog banner

WHAT IS SNAPCHAT AND HOW DOES IT WORK?

Blog banner

Mendeley (management software)

Blog banner

Hacking

Blog banner

Artical on FreshBooks

Blog banner

De-Coding Love

Blog banner

Hash password! Is it really secured?

Blog banner

Indian Food

Blog banner

38_Exploring The Honeynet Project

Blog banner

Fashion design

Blog banner

Virtual Machine

Blog banner