wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Deadlock and Starvation

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

Know your Processors!

Blog banner

Save Girl Child

Blog banner

Blockchain

Blog banner

What are Tenders its various types

Blog banner

EdTech (Education Technology)

Blog banner

Fault tolerance

Blog banner

Virtual Machine

Blog banner

PROCESS CONTROL BLOCK IN OS

Blog banner

Importance Of Yoga.

Blog banner

Functions Of Operating Systems

Blog banner

The Role of Frontline Managers in Driving Workplace Performance and Customer Satisfaction

Blog banner

How can denial-of-service(Dos) attacks be prevented?

Blog banner

Deadlock

Blog banner

Hey Aryan here

Blog banner

Direct Memory Access

Blog banner

Smart Homes | Zigbee Alliance

Blog banner

LEMON PICKLE (NIMBU KA ACHAR)

Blog banner

Virtual Memory

Blog banner

From Websites To Super Apps For Digital User Experience

Blog banner

What is semaphore in operating system?

Blog banner

A-B-C of Networking: Part-1 (Basics)

Blog banner

IP Address

Blog banner

How Laughing Gas Makes Your Dental Visit So Much Easier

Blog banner

Respondo Launches Revolutionary Video Discussion App

Blog banner

APACHE KAFKA

Blog banner

Evolution of Operating system.

Blog banner

Functions of operating system

Blog banner

How to use GIT & GITHUB

Blog banner

Process in OS

Blog banner

Memory management

Blog banner

Admissions Open: Why This Is the Right Time to Choose the Best School for Your Child

Blog banner

Workplace mental health: A Psychological Perspective on Employee Well-being and Organizational Growth

Blog banner

PHONE TECHNOLOGY

Blog banner

How Preschool Annual Day Shapes Confidence, Emotions, and Growth

Blog banner

Mumbai

Blog banner

Gis in agriculture and farming

Blog banner

Linux Memory Management

Blog banner

What Your Music Taste Reveals About Your Personality

Blog banner

Memory Management in Operating System

Blog banner

Risk mitigation and management

Blog banner

How to Run your First android App

Blog banner

Virtual Memory

Blog banner