wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Deadlock and Starvation

profile
Shubham Yadav
Aug 15, 2024
0 Likes
0 Discussions
51 Reads

1. Deadlock


Deadlock in an operating system occurs when a set of processes become stuck because each process is waiting for a resource that another process holds, and none of the processes can proceed. This situation usually arises in multi-process systems where processes share resources such as files, memory, or devices. The four necessary conditions for deadlock, often referred to as Coffman’s conditions, are mutual exclusion, hold and wait, no preemption, and circular wait. If all these conditions hold simultaneously, the system can enter a deadlock state. Deadlocks can be addressed through prevention, avoidance, or detection and recovery methods. Prevention involves designing the system to negate one or more of the Coffman conditions, while avoidance uses algorithms like Banker’s Algorithm to ensure the system never enters an unsafe state. Detection and recovery involve allowing the deadlock to occur but having mechanisms to identify and resolve it by terminating processes or rolling them back.


2.Starvation


Starvation occurs in an operating system when a process waits indefinitely to gain access to a resource it needs, even though the resource is available at times. This typically happens in scheduling algorithms that favor certain processes over others, like when a low-priority process is continually preempted by higher-priority processes. Starvation is a significant problem because it can lead to reduced system performance and inefficiency. Solutions to starvation include using aging, a technique where the priority of a waiting process is gradually increased, ensuring that every process eventually gets a chance to execute. By incorporating aging into scheduling algorithms, the operating system can prevent starvation by ensuring that processes waiting for resources for a long time are eventually given access, thus maintaining system fairness.


Comments ()


Sign in

Read Next

Digital Marketing - The new way to reach end consumer

Blog banner

Deadlock and Starvation

Blog banner

Raising Emotionally Intelligent Students: The Classroom Beyond Academics

Blog banner

Deadlock

Blog banner

RAID

Blog banner

Article on different management system

Blog banner

Direct Memory Access

Blog banner

Virtual Memory

Blog banner

PROCESS STATE:

Blog banner

Real-time Scheduling - 53003230061

Blog banner

Study of Backdoor and Trojan tools

Blog banner

Logical and physical address

Blog banner

1.1 basic elements

Blog banner

How to use GIT & GITHUB

Blog banner

Review on Cyber Forensics and its Analysis Tools

Blog banner

Apache Spark :- Powerful Data Processing Tool

Blog banner

Tea, Coffee, Red Wine, and Teeth: A Stain Survival Guide

Blog banner

How To Secure Operating Systems ?

Blog banner

The Evolution of Operating Systems

Blog banner

The New Dr. Frankenstein who will perform first full head transplant

Blog banner

CYBERPEACEKEEPING: NEW WAYS TO PREVENT AND MANAGE CYBERATTACKS

Blog banner

Starvation and Deadlock.

Blog banner

Models of Information Security.

Blog banner

Never give up

Blog banner

Android Application Components and Activity Lifecycle

Blog banner

OS DESIGN CONSIDERATIONS FOR MULTIPROCESSOR

Blog banner

File and File System Structure

Blog banner

RAID and It's Levels

Blog banner

Concurrency management in operating systems

Blog banner

Internet of Things

Blog banner

Blog on Smartsheet.

Blog banner

Improving defences Proxy Device(defense in depth)

Blog banner

The Art Of Getting What You Want In Life....

Blog banner

Process in OS

Blog banner

Evolution of Operating Systems

Blog banner

Define Instagram.

Blog banner

Google

Blog banner

Fashion marketing in india

Blog banner

Importance of modern technology era

Blog banner

Multiprocessor scheduling

Blog banner

SECURITY RISKS OF REMOTE WORKING

Blog banner

What is Internet

Blog banner