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

When Is the Right Time to Enrol My Toddler Into Preschool? NEP

Blog banner

JIRA SOFTWARE

Blog banner

10 Amazing facts about Tokyo Ghoul

Blog banner

DATA WRANGLING

Blog banner

MEMORY MANAGEMENT (techniques)

Blog banner

Thumb Sucking: When It’s Normal and When It Becomes a Dental Problem

Blog banner

I/O Management and Disk Scheduling

Blog banner

Clustering Techniques

Blog banner

social media issue

Blog banner

Blockchain Transactions

Blog banner

Network Security Risks

Blog banner

Difference Between Classification And Clustering

Blog banner

Raid and levels of raid.

Blog banner

Access management

Blog banner

Oracle Corporation

Blog banner

What are Tenders its various types

Blog banner

Components of GIS

Blog banner

Memory Management

Blog banner

operating system

Blog banner

Veg Mix Pickle

Blog banner

DURGA POOJA

Blog banner

Modern operating system

Blog banner

Memory Management

Blog banner

5 Stages of Digital Marketing

Blog banner

Famous Indian dishes that where misunderstood to be Indian

Blog banner

Uniprocessor Scheduling

Blog banner

Modern Operating system

Blog banner

Critical success factors

Blog banner

Memory managment

Blog banner

10 Interesting Facts about Attack on Titan

Blog banner

Key to success in Sports

Blog banner

Navigation With Indian Constellation(NavIC) by ISRO in Geographic Information Systems

Blog banner

What is Network Security?

Blog banner

Data Science in Healthcare: Predicting Diseases

Blog banner

Electronic Evidence in Cyber Forensics

Blog banner

How Reading Books Shape a Child’s Imagination and Thinking?

Blog banner

How Laughing Gas Makes Your Dental Visit So Much Easier

Blog banner

Types of Hackers.

Blog banner

MACHINE LEARNING

Blog banner

K-means use cases

Blog banner

The Golden Temple , Amritsar

Blog banner

The Role of Frontline Managers in Driving Workplace Performance and Customer Satisfaction

Blog banner