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

What is semaphore in operating system?

Blog banner

15 Websites that will make your life easier ...!!!

Blog banner

Meal Maharaj — 3 CP, 5 CP, 8 CP. Same Love, Different Portions

Blog banner

Ghee vs. Coconut Oil vs. Mustard Oil: Which Cooking Fat Wins for Indian Food?

Blog banner

Footprinting

Blog banner

Autonomy Vehicles: Future Ki Gadiya

Blog banner

Traditional UNIX Scheduling

Blog banner

NodeJs

Blog banner

Deming’s Process

Blog banner

Virtual memory in Operating System

Blog banner

Zomato (Income Sources)

Blog banner

Some web vulnerabilities

Blog banner

Royal enfield

Blog banner

RAID - LEVELS OF RAID

Blog banner

The Benefits of Mixed Learning Activities for Preschoolers

Blog banner

A Brief Review on Cyber Forensics and its Analysis Tool

Blog banner

Security issues in Sensor Networks and gathering admissible evidence in Network Forensics

Blog banner

Photorec - media recovery tool

Blog banner

The Future of Web Development in 2026: Trends Every Business Must Know

Blog banner

THE LEGAL ISSUES OF COMPUTER FORENSICS IN INDIA

Blog banner

INTERRUPTS

Blog banner

Pooja Silver

Blog banner

Security Issues and Countermeasures

Blog banner

Deadlock and Starvation

Blog banner

Real time scheduling

Blog banner

The Memory Hierarchy

Blog banner

Jamming Attacks in Network Security: Disrupting Communication Signals

Blog banner

Memory management

Blog banner

Process in OS

Blog banner

Interrupts - Types, Working & Importance

Blog banner

Real Time Scheduling

Blog banner

Travel Geek ‘The last $50k in Switzerland’

Blog banner

Busted : Common Web Security Myths

Blog banner

What is process

Blog banner

Deadlock and Starvation

Blog banner

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

Blog banner

WomenEmpowerment

Blog banner

Memory Management

Blog banner

I/O Buffering

Blog banner

File Systems in OS.

Blog banner

Introduction to Virtual Memory - 080

Blog banner

Asana

Blog banner