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

Virtual memory

Blog banner

The Right way of cooking

Blog banner

What is thread and multithreading ?

Blog banner

DIGITAL ECONOMY

Blog banner

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

Blog banner

The Dark Web: A Breeding Ground for Cybercriminals – How to Guard Against Threats

Blog banner

Process State

Blog banner

Hosting basics

Blog banner

Modern Operating system

Blog banner

Getting into Anime

Blog banner

"Audit" In Data Science

Blog banner

THE ROLE OF CYBER FORENSICS IN CRIMINOLOGY

Blog banner

TEAMWORK

Blog banner

Why Festivals Are the Best Classrooms for Young Minds?

Blog banner

GEOLOGY AND GEO-TECTONIC FRAME WORK OF WESTERN BASTAR CRATON

Blog banner

My Favorite Sportsperson

Blog banner

Expressing and Measuring Risk (Risk Management)

Blog banner

Uniprocessor Scheduling

Blog banner

Digital Balance: Keeping Children Mindful in the Screen Age

Blog banner

History of ITIL

Blog banner

John Titor: The Time Traveler

Blog banner

Rain bow

Blog banner

Constrains in service design

Blog banner

An Overview of Virtual Machines

Blog banner

Threads and concurrency

Blog banner

LinkedIn: Watch out for these 7 upcoming updates in 2023

Blog banner

Operating System Objectives and Functions

Blog banner

Safeguarding Your Data: The Importance of Wireless Encryption

Blog banner

All you need to know about “On-page SEO”

Blog banner

Modern Operating System - Khush Bagaria

Blog banner

Deadlock and Starvation

Blog banner

Product Discount Calculator

Blog banner

The Role of Teachers in Building a Child’s Confidence

Blog banner

DEVELOPMENTS LEADING TO MODERN OPERATING SYSTEMS

Blog banner

(Input/Output) in os

Blog banner

10 Signs your Computer has Virus

Blog banner

What is Anxiety? How to manage Anxiety?

Blog banner

Esri India launches Policy Maps.

Blog banner

Virtualization

Blog banner

A Review on Data Acquisition in Cyber Forensics

Blog banner

PPC Advertising and its Impressive Benefits

Blog banner

Deadlocks in Operating System

Blog banner