wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

OPERATING SYSTEM

profile
Nandini Makwana
Aug 10, 2024
0 Likes
0 Discussions
79 Reads

OPERATING SYSTEM

 

TOPIC :- Concurrency Deadlock and Starvation 

 

1) Concurrency :-

concurrency is the property of a system where multiple tasks or processes are in progress at the same time and this does not necessary mean that the tasks are being executed simultaneously in parallel but rather that they are being managed in such a way that they overlap in execution 

 

---Deadlock :-

*Deadlock can be defined as the permanent blocking of a set of processes that either compete for system resources or communicate with each other

* A set of processes is deadlocked when each process in the set is blocked awaiting an event that can only be triggered by another blocked process in the set 

* Deadlock is permanent because none of the event is ever triggered . At list one resource must held in a non - shareable mode only one processes or thread can hold it a time process of threads holding resources can request additional resources without releasing their current ones 

 

Example :- Let take Two processes P1 and P2 and two resources R1 and R2

- P1 holds R1 and request R2 

- P2 holds R2 and request R1

Process can proceed because each is waiting for a resource held by the other leading to a deadlock 

 

 

---Starvation :- 

* Starvation in an operating system occurs when a processes is indefinitely delayed from accessing resources or CPU time . It often results from scheduling policies that consistently favor certain processes over others

* processes with lower priority may starve if higher - priority processes keep arriving and are always given first preference 

 

Example :- let take a simple example a scheduling system that uses a priority based algorithm processes with higher priority are served before those with lower priority 

 

processes A : High priority 

 

Processes B : Medium priority 

 

processes C : Low priority 

 

if new high priority processes keep arriving they will always be scheduled before low priority processes . Processes C may never get CPU time leading to starvation even if the processes C is ready to execute it is constantly by passed by priority processes causing it to wait indefinitely


Comments ()


Sign in

Read Next

Cache Memory

Blog banner

An Approach To Spyware Detection And Removal

Blog banner

Dekkers Algorithm

Blog banner

The Role of Teachers in Building a Child’s Confidence

Blog banner

Starvation

Blog banner

Knowledge Management in Continual Service improvement (CSI)

Blog banner

Virtual memory

Blog banner

Memory Management in an Operating System

Blog banner

Service design process in ITSM

Blog banner

Data Lake

Blog banner

memory cache

Blog banner

From Model Mistakes to Metrics

Blog banner

Modern Operating System - Khush Bagaria

Blog banner

Top 4 Places To Stay In Copenhagen

Blog banner

How to invest in Indian Stock Market ? ~ Tutorial 1

Blog banner

Mumbai

Blog banner

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

Blog banner

What is Internet

Blog banner

AI & Data Science in Healthcare – Predicting diseases, medical imaging analysis

Blog banner

Advanced Persistent Threats (APTs)

Blog banner

Virtual Machine's

Blog banner

Blockchain in IoT Applications

Blog banner

objectives and functions of operating system

Blog banner

Tomato Butter Sauce with Bucatini

Blog banner

Buffering

Blog banner

How College Events Build Real-world Skills You Can’t Learn From Textbooks

Blog banner

Modern operating system

Blog banner

FASHION

Blog banner

How India made the GIS its Own, and its Use in Infrastructural Developments

Blog banner

Importance Of Education.

Blog banner

How covid-19 impacted Social media ad spend forecast globally

Blog banner

Article on different management system

Blog banner

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

Blog banner

Vulnerability Assessment (Vulnerability Analysis)

Blog banner

Data Lake

Blog banner

Deadlock

Blog banner

What is process

Blog banner

10 Unknown facts about India's Independence

Blog banner

Pink sauce pasta

Blog banner

Threads

Blog banner

Understanding Gen Z: A Generation Facing Crisis and Potential

Blog banner

Electronic Funds Transfer

Blog banner