wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

OPERATING SYSTEM

profile
Nandini Makwana
Aug 10, 2024
0 Likes
0 Discussions
82 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

Dancing Classes In Mumbai

Blog banner

How to grow followers on Instagram business account?

Blog banner

Stories Woven in Silk: The Meaning Behind Patola Motifs

Blog banner

Service Operation

Blog banner

Vulnerability Assessment

Blog banner

Virtual memory

Blog banner

How can parents support a child’s mental health?

Blog banner

Memory Management

Blog banner

Data Visualization

Blog banner

SECURITY VULNERABILITIES COUNTERMEASURES IN A SMART SHIP SYSTEM

Blog banner

CONCURRENCY: MUTUAL EXCLUSION AND SYNCHRONIZATION-het karia

Blog banner

Memory input output management

Blog banner

OLA

Blog banner

The Five Steps of Data Science

Blog banner

Data Structures

Blog banner

Working with Sniffers for monitoring network communication

Blog banner

Student Grade Calculator in LISP

Blog banner

ZOHO

Blog banner

How Industrial Gratings Improve Safety, Drainage, and Workplace Efficiency?

Blog banner

10 Things To Do On Valentine's Day If You're Single

Blog banner

Why Peace River Is Florida’s Most Underrated Outdoor Adventure Destination?

Blog banner

SNAPCHAT

Blog banner

DMZ: Your Secret Weapon for Data Security

Blog banner

Game via listing method

Blog banner

Affiliate Marketing V/S Influencer Marketing

Blog banner

My First Dream Bike

Blog banner

The Right way of cooking

Blog banner

Smart Shoephone: Is that technology overdose!?

Blog banner

Bulk E-mail software

Blog banner

Points to consider if you're planning to visit Florida in 2026

Blog banner

How GIS in Agriculture Eliminates Guesswork

Blog banner

CSI and Organizational Change

Blog banner

PPT methodology

Blog banner

Virtualisation

Blog banner

My First Trek - Sondai, Karjat - Shoaib Malik

Blog banner

Health and fitness

Blog banner

The evolution of OS

Blog banner

Why do you need a personalised bag tag for your kids' school bags?

Blog banner

Does School Infrastructure Really Matter For Learning?

Blog banner

Evolution of Operating system

Blog banner

Facebook marketing

Blog banner

Technical SEO : Total Guide

Blog banner