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

Geographic Information Systems(By aditi Unnikrishnan)

Blog banner

An Overview of Virtual Machines

Blog banner

Processes: Process Description and Control.

Blog banner

Denial-of-Service and Distributed Denial-of-Service Attack Techniques

Blog banner

Direct Memory Access

Blog banner

Components of GIS

Blog banner

Facebook Shut Down an AI Program!!! Facebook AI bots became Terminators???

Blog banner

Process State

Blog banner

Processes : Process description and control

Blog banner

Traditional Unix System

Blog banner

SQL Injection practice on DVWA

Blog banner

Operating Systems Overview

Blog banner

Theads

Blog banner

" THE ANSWERS THAT LED INDIAN BEAUTIES TO THE MISS UNIVERSE HISTORIC WIN. "

Blog banner

Web Site

Blog banner

What is Virtual Memory

Blog banner

Why Time Management Is the Secret to College Success (and How to Master It)

Blog banner

Raising mental health burden: A global and Indian perspective

Blog banner

Global versus Indian Mental Health Differences

Blog banner

Why am I never satisfied with my Life?

Blog banner

Virtual Memory

Blog banner

HTML vs HTML5

Blog banner

Memory Management

Blog banner

How I use google in my daily life

Blog banner

Python as a tool for data analysis

Blog banner

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

Blog banner

Facebook marketing

Blog banner

Firewall / IDS Evasion Techniques

Blog banner

Install Ubuntu Easily

Blog banner

Building Confidence in Children Through Daily Routines and Play

Blog banner

Artificial Intelligence and I

Blog banner

WORKFRONT SOFTWARE

Blog banner

Personalized Movie Recommendations with Data Science

Blog banner

Full Disk Encryption

Blog banner

Buffers in Operating Systems

Blog banner

Electronic Funds Transfer

Blog banner

Web browser forensics:Tools,Evidence collection and analysis

Blog banner

The Sunny Side of Instagram

Blog banner

LEMON PICKLE (NIMBU KA ACHAR)

Blog banner

Key to success in Sports

Blog banner

Top 4 Places To Stay In Copenhagen

Blog banner

Operating system

Blog banner