wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Deadlock and Starvation

profile
Krishna Rao
Aug 14, 2024
0 Likes
0 Discussions
89 Reads

Deadlock occurs when each process holds a resource and wait for other resource held by any other process. Necessary conditions for deadlock to occur are Mutual Exclusion, Hold and Wait, No Preemption and Circular Wait. In this no process holding one resource and waiting for another get executed. For example, in the below diagram, Process 1 is holding Resource 1 and waiting for resource 2 which is acquired by process 2, and process 2 is waiting for resource 1. Hence both process 1 and process 2 are in deadlock.



Starvation is the problem that occurs when high priority processes keep executing and low priority processes get blocked for indefinite time. In heavily loaded computer system, a steady stream of higher-priority processes can prevent a low-priority process from ever getting the CPU. In starvation resources are continuously utilized by high priority processes. Problem of starvation can be resolved using Aging. In Aging priority of long waiting processes is gradually increased.


Comments ()


Sign in

Read Next

Service transition principles

Blog banner

Deadlocks

Blog banner

What is Virtual Memory

Blog banner

File Organization and Access

Blog banner

Memory heirachy (Operating system)

Blog banner

Man is free by the birth .

Blog banner

SECURITY RISKS OF REMOTE WORKING

Blog banner

Risk factors in service transistion

Blog banner

Objectives and functions of Operating System...

Blog banner

Importance Of Education.

Blog banner

Information of meesho company

Blog banner

File Systems in OS.

Blog banner

Steganography

Blog banner

ITIL Version 3 and 4 differenciation?

Blog banner

QUANTUM COMPUTING IN SECURITY:A GAME CHANGER IN DIGITAL WORLD

Blog banner

IP Address

Blog banner

Paging

Blog banner

Cyber Security in Data Breaching

Blog banner

objectives and functions of operating system

Blog banner

Improving the Accuracy of GPS and GNSS

Blog banner

Policies for Service Transition

Blog banner

10 Problems you face if you are an Otaku

Blog banner

File management in os

Blog banner

What is Internet

Blog banner

Philadelphia Experiment : Was it real?

Blog banner

Difference Between Classification And Clustering

Blog banner

"Can Lisp do Machine Learning?"

Blog banner

PROCESS STATES OF OPERATING SYSTEM

Blog banner

Service stratergy principles

Blog banner

Unlocking the Secrets: Basic Operations of Computer Forensic Laboratories

Blog banner

LinkedIn: Watch out for these 7 upcoming updates in 2023

Blog banner

SECURITY VULNERABILITIES COUNTERMEASURES IN A SMART SHIP SYSTEM

Blog banner

Raising Emotionally Intelligent Students: The Classroom Beyond Academics

Blog banner

Blog name

Blog banner

Human Error: The weakest link in Cybersecurity

Blog banner

Smart Shoephone: Is that technology overdose!?

Blog banner

World’s rarest passport owned by 500 people.

Blog banner

Why we fail after giving 100% ?

Blog banner

Visualization in Data Science

Blog banner

Never give up

Blog banner

INTERRUPTS

Blog banner

How to invest in Indian Stock Market ? ~ Tutorial 1

Blog banner