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

LiquidPlanner

Blog banner

How the mobile IP is used in GSM architecture.

Blog banner

Dekkers Algorithm : Ensuring Safe Process Synchronization

Blog banner

Meshoo

Blog banner

HACKING MOBILE PLATFORM

Blog banner

Memory Management of Operating System(OS)

Blog banner

Affiliate Marketing V/S Influencer Marketing

Blog banner

MAHAKAL LOK UJJAIN

Blog banner

Cybersecurity Standards for Automotive

Blog banner

Geographic Information Systems(By aditi Unnikrishnan)

Blog banner

Top 5 Places To Stay And Visit In Berlin, Germany

Blog banner

Delhi city

Blog banner

How social media affect

Blog banner

Fashion design

Blog banner

Deadlock and Starvation

Blog banner

The House ??of Patola Designs: Traditional Weaves with a Modern Twist

Blog banner

Phishing

Blog banner

Supervised and unsupervised learning

Blog banner

operating system

Blog banner

Data-Driven Prediction of Virtual Item Prices in Online Games

Blog banner

MODERN OPERATING SYSTEM

Blog banner

Trends that began during the pandemic

Blog banner

CoWIN

Blog banner

Evolution of Operating Sytems

Blog banner

Microsoft Windows Overview

Blog banner

Access management

Blog banner

Data Mapping

Blog banner

Virtual memory

Blog banner

Traditional UNIX Scheduling

Blog banner

Discover The Top 3 Places To Stay in London

Blog banner

What is metaverse?

Blog banner

Financial Stress and Mental Health

Blog banner

A Heartfelt Act of Kindness

Blog banner

How to Prepare Your Child for Their First Day of School?

Blog banner

Multicore CPUs

Blog banner

DNS Cache

Blog banner

Pipedrive

Blog banner

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

Blog banner

MEMORY MANAGEMENT (techniques)

Blog banner

Worms, viruses and Bots

Blog banner

Deadlocks

Blog banner

CYBERBULLYING: Negative comments!

Blog banner