wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Deadlock and starvation

profile
Jwala the Beast
Aug 15, 2024
0 Likes
0 Discussions
37 Reads

Deadlock and starvation are two key issues in concurrent computing systems, particularly in operating systems and database management.


**Deadlock** occurs when a set of processes become stuck in a state where each process is waiting for a resource that is held by another process in the set. This creates a cycle of dependencies with no process able to proceed. For example, if Process A holds Resource 1 and is waiting for Resource 2 (held by Process B), while Process B is waiting for Resource 1, neither process can continue, resulting in a deadlock.


**Starvation**, on the other hand, happens when a process is perpetually denied necessary resources to proceed because other processes are continuously being given those resources. This usually occurs due to improper resource allocation policies or scheduling algorithms. For instance, if a high-priority process keeps preempting resources from a lower-priority process, the lower-priority process may never get the resources it needs to complete its task.


Both issues need to be managed through effective resource management strategies, such as deadlock detection and recovery mechanisms, and fair scheduling policies to ensure that all processes get a chance to execute.


Comments ()


Sign in

Read Next

EMAIL INVESTIGATION

Blog banner

City of Mumbai (Bombay):

Blog banner

How to use open SSL for web server - browser communication

Blog banner

indian premier league

Blog banner

Deadlock

Blog banner

Save Girl Child

Blog banner

Beatbox

Blog banner

Travel: Everything Everywhere!

Blog banner

Gis in agriculture and farming

Blog banner

Elements and Principles of Photography

Blog banner

Explain DBMS in Brief

Blog banner

Understanding - Proof of Work!

Blog banner

LISP - Library Management System

Blog banner

Sessions In OS.

Blog banner

Reconnaissance

Blog banner

The Difference Between Plaque and Tartar Explained Simply

Blog banner

TRAIN TRAVELING

Blog banner

10 Amazing facts about Tokyo Ghoul

Blog banner

Business Engineering

Blog banner

How to Compare Schools Before an Admission Decision

Blog banner

How to lose belly fat

Blog banner

Memory Management in Operating System

Blog banner

Types of Threads

Blog banner

The Evolution of the Microprocessor ~ Aditya Pai

Blog banner

Objectives and functions of Operating System...

Blog banner

Predictive Analysis - Ek Overview

Blog banner

Explain Multiprocessors

Blog banner

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

Blog banner

Evolution of Operating System

Blog banner

Personalized Movie Recommendations with Data Science

Blog banner

Delhi city

Blog banner

Data Visualization

Blog banner

Emailing the merger document

Blog banner

Rapido

Blog banner

I/O Management and Disk Scheduling

Blog banner

Define Instagram.

Blog banner

Embedded Operating System

Blog banner

Traditional UNIX Scheduling

Blog banner

RAID_142

Blog banner

Data Storytelling: Turning Analysis into Business Action

Blog banner

A-B-C of Networking: Part-3 (Topology [Bus & Star])

Blog banner

Image Steganalysis in Digital Forensics

Blog banner