wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Deadlock and starvation

profile
Jwala the Beast
Aug 15, 2024
0 Likes
0 Discussions
39 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

Virtual memory

Blog banner

What is Data, Information and Knowledge?

Blog banner

Assignment-3

Blog banner

Famous Indian dishes that where misunderstood to be Indian

Blog banner

INDIAN CHEAPEST COSMETICS BRAND

Blog banner

Nature’s Brush on Silk: The Secret Behind Patola Colours

Blog banner

Apache Spark :- Powerful Data Processing Tool

Blog banner

Busted : Common Web Security Myths

Blog banner

Exploring the Power of Encase Forensic Tools: Unraveling Digital Mysteries

Blog banner

MODERN OPERATING SYSTEM

Blog banner

KPMG (Klynveld Peat Marwick Goerdeler)

Blog banner

CONCURRENCY

Blog banner

The Importance of Eating on Time: How Meal Timing Affects Your Health

Blog banner

Sagar Parikrama

Blog banner

Paddle Through Paradise: The Best Kayak Launch Points Near Arcadia

Blog banner

QUANTUM COMPUTING IN SECURITY:A GAME CHANGER IN DIGITAL WORLD

Blog banner

A Brief Review on Cyber Forensics and its Analysis Tool

Blog banner

IP ADDRESS

Blog banner

How Do I Get Rid of My People-Pleasing Behaviour?

Blog banner

Is it important to follow all the trends that come up on social media?

Blog banner

Technological Advancement

Blog banner

Service Catalogue Management

Blog banner

Why we fail after giving 100% ?

Blog banner

memory cache

Blog banner

Safe Learning Spaces: Why Preschool Environment Matters More Than Ever Today

Blog banner

PHONE TECHNOLOGY

Blog banner

Types of OS

Blog banner

Hubspot

Blog banner

Tiranga - Abbas Haveliwala

Blog banner

Pro-Tips On How To Keep your Foot Healthy

Blog banner

OS- Assignnment 1

Blog banner

Process and Threading

Blog banner

Social Engineering Attacks

Blog banner

"The Benefits of Using GIS in Agriculture"

Blog banner

Types of Viruses

Blog banner

WomenEmpowerment

Blog banner

How to insert contacts in zoho crm using php

Blog banner

Craziness of dream 11 and how it impacts on our life

Blog banner

Booting Process In Operating System

Blog banner

The Power of Teamwork: Learning Collaboration Through Everyday Activities

Blog banner

Royal enfield

Blog banner

GIS Bharat Maps

Blog banner