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

What is E-commerce

Blog banner

Overcoming the bedtime brushing Battle with Dr. Roxanne Irani, Dentist in Maroubra

Blog banner

BIRYANI ! The history you never knew about

Blog banner

Direct memory access

Blog banner

Types of Hackers.

Blog banner

Review on Recovering Deleted Files

Blog banner

Decision Tree: A Diagram Model

Blog banner

How to Find the Right Therapist For Me?

Blog banner

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

Blog banner

Memory input output management

Blog banner

Deadlock

Blog banner

MULTITHREADING:ENHANCEING PERFORMANCE AND EFFICIENCY IN COMPUTING

Blog banner

Skills An Ethical Hacker Must Have

Blog banner

Love is in air.....

Blog banner

Scheduling

Blog banner

A-B-C of Networking: Part-3 (Topology [Ring, Tree, Mesh])

Blog banner

WomenEmpowerment

Blog banner

Information of meesho company

Blog banner

The Rich Heritage Of Patola Sarees: Gujarat’s Timeless Weaving Art

Blog banner

JIRA SOFTWARE

Blog banner

Data Visualization – Importance and tools (Tableau, Power BI)

Blog banner

Different types of scam Fraud

Blog banner

MODERN OPERATING SYSTEM

Blog banner

Vikrant’s first blog

Blog banner

RAID

Blog banner

Creating Digitally Signed Document

Blog banner

Design Considerations for Disk Cache Management

Blog banner

What is the point of living if we can die at any moment of our lives ?

Blog banner

QUANTUM COMPUTING IN SECURITY:A GAME CHANGER IN DIGITAL WORLD

Blog banner

EFT

Blog banner

RAID

Blog banner

Beauty of indian railway

Blog banner

Measuring IT Risk

Blog banner

Earth with no trees

Blog banner

Tomato Butter Sauce with Bucatini

Blog banner

The Essential Guide to Dynamic Arrays vs. Linked Lists: Which to Use and When ?

Blog banner

Microsoft Windows Overview

Blog banner

Network Footprinting in Cybersecurity

Blog banner

Kafka - A Framework

Blog banner

Memory Management in an Operating System

Blog banner

Security Issues

Blog banner

HUBSPOT

Blog banner