wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Deadlock and Starvation

profile
Niraj Parulekar
Aug 13, 2024
0 Likes
0 Discussions
95 Reads

1] Deadlock :
                       Deadlock is a situation where a set of processes becomes stuck, each waiting for a resource that the other  processes in the set are holding. This results in a cycle of dependencies where no process can proceed, leading to a complete halt in the system. Deadlock typically occurs under four conditions, known as        Coffman’s conditions:

1. Mutual Exclusion: At least one resource must be held in a non-shareable mode, meaning that only one                                               process can use the resource at a time.

2. Hold and Wait: A process holding at least one resource is waiting to acquire additional resources that are                                         currently being held by other processes.

3. No Preemption: A resource can be released only voluntarily by the process holding it after that process has                                      completed its task.

4. Circular Wait: There must be a circular chain of processes, where each process holds at least one resource                                 that the next process in the chain needs.

--Deadlock prevention, avoidance, detection, and recovery are the primary strategies used to handle deadlocks.

  Prevention involves breaking one of Coffman’s conditions, whereas avoidance uses algorithms like the Banker’s    Algorithm to ensure that the system remains in a safe state. Detection algorithms can identify deadlock when it      occurs, and recovery techniques involve terminating or rolling back processes to break the deadlock.

2] Starvation :
                    Starvation, on the other hand, occurs when a process is perpetually denied the resources it needs to proceed. Unlike deadlock, where processes are waiting on each other in a cycle, starvation involves one or more processes being overlooked in favor of others. This often happens in scheduling algorithms that prioritize certain processes, causing lower-priority processes to wait indefinitely.

For example, in a priority-based scheduling system, a low-priority process might never get CPU time if higher-priority processes continuously arrive. Starvation is particularly problematic in systems where fairness and equitable resource allocation are critical.

To mitigate starvation, algorithms such as aging are used, where the priority of a process increases the longer it waits, eventually ensuring that it will receive the necessary resources.


Comments ()


Sign in

Read Next

Operating System Objectives and Functions

Blog banner

EVOLUTION OF MICROPROCESSOR

Blog banner

THREADS (assignment 1)

Blog banner

Why You Need 2FA (Two-Factor Authentication) On Your Email And Other Online Accounts

Blog banner

Article on team management software

Blog banner

Simple AI Symptom Diagnosis Using LISP – Rule-Based Expert System

Blog banner

The New Rules of UI/UX Design Every Website Must Follow in 2026

Blog banner

Career v/s Job : Choose your passion

Blog banner

Deadlock

Blog banner

Things You Should Leave Behind In 2025, Whilst In 2026

Blog banner

Capacity management in ITSM

Blog banner

How to Find the Right Therapist For Me?

Blog banner

Modern Teaching Methods: Why Inquiry-based & Experiential Learning Works Best

Blog banner

Major achievement

Blog banner

Best Time to Visit Arcadia, Florida & Why Oak Tree Hotel Is Always Ready

Blog banner

Cloud Security: Trends and Innovations

Blog banner

GIS in Disaster Management

Blog banner

How return on investment is defined in IT services

Blog banner

Article on Fresh Book

Blog banner

Starvation

Blog banner

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

Blog banner

The Rise of Polo Tourism in the USA: How Travellers Are Blending Luxury Stays with Elite Sports

Blog banner

Mumbaicha Dabbawalla

Blog banner

Linux Memory Management

Blog banner

What is time ? The term which has astonished Scientists

Blog banner

Computer Security

Blog banner

SAVE TREES

Blog banner

Banaras

Blog banner

Deadlock in operating system

Blog banner

Security in Cloud Computing

Blog banner

What is Password Cracking ? and it's Techniques.

Blog banner

Apache Spark :- Powerful Data Processing Tool

Blog banner

Survey of Which Movies Types people are Prefer to Watch in India.

Blog banner

Data Visualization

Blog banner

(Input/Output) in os

Blog banner

Blockchain in IoT Applications

Blog banner

Latest Email Marketing Techniques

Blog banner

ZOHO

Blog banner

Session Hijacking Techniques

Blog banner

Jio .....A Revolution ?? ??

Blog banner

Embedded Operating System

Blog banner

Modern operating system

Blog banner