wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Deadlock and Starvation

profile
Kush Patel
Aug 15, 2024
0 Likes
0 Discussions
110 Reads

Deadlock and Starvation are two issues that can occur in computer systems, particularly in the context of concurrent processes and resource management.


Deadlock occurs in a system when a set of processes are each waiting for a resource held by another process in the set, causing all of them to be stuck in a state of waiting with no progress being made. For instance, imagine two processes: Process A and Process B. Process A holds Resource 1 and needs Resource 2 to continue, while Process B holds Resource 2 and needs Resource 1 to proceed. Neither process can continue because they are each waiting for the other to release a resource, leading to a cycle of dependencies with no process able to move forward. Deadlocks can be avoided or managed through techniques such as resource allocation graphs, deadlock detection algorithms, or using protocols like Banker's algorithm.

Starvation

Starvation occurs when a process is perpetually denied the resources it needs for execution because other processes are continuously allocated these resources. This problem can arise from improper scheduling or resource allocation policies. For example, in a priority-based scheduling system, if high-priority processes continuously arrive, lower-priority processes may never get a chance to execute. This is because the system always prioritizes the high-priority processes, leading to the lower-priority ones being indefinitely postponed. Starvation can be mitigated through techniques such as aging, where the priority of a process is gradually increased the longer it waits, ensuring that eventually, it gets the resources it needs.


Both deadlock and starvation are critical concerns in system design. Deadlock represents a state of complete standstill in resource usage, while starvation indicates an unfair allocation of resources leading to some processes never completing. Proper system design and management strategies are essential to avoid or resolve these issues, ensuring efficient and fair resource utilization.


Comments ()


Sign in

Read Next

About myself

Blog banner

A small world of Sockets

Blog banner

To travel is to live

Blog banner

Deadlocks

Blog banner

Network Forensics

Blog banner

Os(Computer security threats)

Blog banner

Models of Information Security.

Blog banner

INTERNET SECURITY

Blog banner

Health is Wealth

Blog banner

What is time ? The term which has astonished Scientists

Blog banner

TRIGGERS IN DATABASE

Blog banner

Types of Threads

Blog banner

Self managing devices

Blog banner

A-B-C of Networking: Part-2 (Components)

Blog banner

Incident management in ITSM

Blog banner

Online Games

Blog banner

Memory input output management

Blog banner

Hey Aryan here

Blog banner

Environmental Management using GIS

Blog banner

Charcoal, Lemon, and DIY Kits: Which “Viral” Dental Trends Are Actually Dangerous?

Blog banner

How to use GIT & GITHUB

Blog banner

Basic Security For SOAP Services

Blog banner

Exploring Arcadia’s Cowboy Culture, Peace River & Hidden Attractions

Blog banner

Data Science in Mental Health Prediction

Blog banner

A MODERN OPERATING SYSTEM

Blog banner

child Labour

Blog banner

Buffer overflow

Blog banner

Way to make your meal healthier.

Blog banner

How to invest in Indian Stock Market ? ~ Tutorial 1

Blog banner

The Right way of cooking

Blog banner

Drawing tips for a beginner

Blog banner

Social Media Marketing Trends 2022

Blog banner

Objectives and functions of Operating System...

Blog banner

Hash password! Is it really secured?

Blog banner

KEAP MANAGEMENT SYSTEM

Blog banner

Travelling blog

Blog banner

Solitary Play Activities for Preschoolers: Types and Benefits

Blog banner

(Input/Output) in os

Blog banner

Real time scheduling

Blog banner

Memory management

Blog banner

Palliative and End — of — Life Care: A Psychological and Holistic Perspective

Blog banner

"Mahakali cave"

Blog banner