wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

OPERATING SYSTEM

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

Difference Between Classification And Clustering

Blog banner

SECURITY RISKS OF REMOTE WORKING

Blog banner

Which Smartphone Company Has the Largest Market Share in India?

Blog banner

MD5 Collisions and the impact on computer forensics

Blog banner

Firewall / IDS Evasion Techniques

Blog banner

Body Image and Low Self Esteem: Understanding the Emotional Impact Beyond Appearance

Blog banner

INTRODUCTION TO C#

Blog banner

EID UL FITR

Blog banner

Severe landslides continue to cause concern in Joshimath, Uttarakhand

Blog banner

Disk scheduling

Blog banner

Different types of e-commerce platforms or advantages and disadvantages

Blog banner

Celebrate Diwali the Delicious Way with Meal Maharaj Catering

Blog banner

Efficiency of SQL Injection Method in Preventing E-Mail Hacking

Blog banner

Understanding the 'Ambiverts'

Blog banner

MySQL

Blog banner

Dr. Venkadavarahan

Blog banner

Deadlock

Blog banner

Evolution of the Microprocessor ~ Aditya Pai

Blog banner

Major achievement

Blog banner

Business Intelligence v/s Big Data

Blog banner

Disk scheduling

Blog banner

Healthy Habits Children Learn at Preschool That Last a Lifetime

Blog banner

From Airboat Tours to Fossil Hunting: The Ultimate Arcadia Travel Experience

Blog banner

Data Structures

Blog banner

Life of a 2020-2021 student

Blog banner

Procedure For Corporate High-Tech Investigations

Blog banner

Tiranga - Abbas Haveliwala

Blog banner

Theads

Blog banner

WHAT IS SNAPCHAT AND HOW DOES IT WORK?

Blog banner

Process in OS

Blog banner

INTRANET

Blog banner

'C', 'C++' and 'Java': Head-to-Head

Blog banner

Memory Partitioning

Blog banner

Google classroom

Blog banner

Semaphores

Blog banner

Blockchain technology: security risk and prevention

Blog banner

Virtual Machine

Blog banner

10 Types of Friends in every friend group

Blog banner

Introduction to Solidity Programming for Blockchain Development

Blog banner

Multiprocessor and Multicore Organization

Blog banner

GOOGLE

Blog banner

How to Add Super Seeds to Your Everyday Meals: Easy & Healthy Ideas

Blog banner