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

INTRANET

Blog banner

Explaining Buffer Overflow with Example

Blog banner

Mumbai

Blog banner

Scheduling

Blog banner

Python as a tool for Data science task & project

Blog banner

What is process

Blog banner

Simple STEM Activities for Toddlers That Spark Curiosity

Blog banner

Smart Homes | Zigbee Alliance

Blog banner

Introduction to Data Science: Life Cycle & Applications

Blog banner

Esri India launches Policy Maps.

Blog banner

Why Data Security Is Important

Blog banner

Meal Maharaj — 3 CP, 5 CP, 8 CP. Same Love, Different Portions

Blog banner

Multithreading in Operating System

Blog banner

Service Design Principles

Blog banner

What are Tenders its various types

Blog banner

Types of Malware in Cyber Security

Blog banner

DATA WRANGLING

Blog banner

Spyware

Blog banner

Memory Management

Blog banner

SECURITY VULNERABILITIES COUNTERMEASURES IN A SMART SHIP SYSTEM

Blog banner

Multiprocessor and Multicore Organization

Blog banner

HTML vs HTML5

Blog banner

Memory hierarchy

Blog banner

MD5 Collisions and the impact on computer forensics

Blog banner

The functions of operating system

Blog banner

File Management system

Blog banner

Why Data Privacy Is Changing Online Advertising

Blog banner

Khau Galli – Vile Parle

Blog banner

E-commerce

Blog banner

VIRTUAL MACHINES

Blog banner

Artificial Intelligence and I

Blog banner

Tea, Coffee, Red Wine, and Teeth: A Stain Survival Guide

Blog banner

How to Find the Right Therapist For Me?

Blog banner

Travelling blog

Blog banner

AI & Data Science in Healthcare – Predicting diseases, medical imaging analysis

Blog banner

RAID - LEVELS OF RAID

Blog banner

Ubiquitous Computing

Blog banner

Lucidchart

Blog banner

Disk scheduling

Blog banner

AOL Mail

Blog banner

A Survey of Anti-Forensic Techniques: Methods, Challenges, and Countermeasures

Blog banner

PROCESS STATES OF OPERATING SYSTEM

Blog banner