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

Digital Forensics Challenges and Tools

Blog banner

PERSONALITY DEVELOPMENT

Blog banner

Cross site scripting Attack

Blog banner

DEVELOPMENTS LEADING TO MODERN OPERATING SYSTEMS

Blog banner

Top 3 Places To Stay In Vienna

Blog banner

Delhi city

Blog banner

Mumbaicha Dabbawalla

Blog banner

Kernel in Operating System

Blog banner

Outlook mail

Blog banner

Title: Modern Operating Systems: Powering the Digital Era

Blog banner

Threat from Inside: Educating the Employees Against Cyber Threats

Blog banner

Busted : Common Web Security Myths

Blog banner

Ubiquitous Computing

Blog banner

RAID_142

Blog banner

Apache Spark :- Powerful Data Processing Tool

Blog banner

My First Trek - Sondai, Karjat - Shoaib Malik

Blog banner

OPERATING SYSTEM OBJECTIVES AND FUNCTIONS

Blog banner

Zomato's Secret Digital Marketing Techniques!

Blog banner

Brain wash of social media

Blog banner

Biometric Authentication and Privacy: Balancing Ethical Concerns

Blog banner

Types of email

Blog banner

Importance Of Yoga.

Blog banner

The Impact of Cyber Forensics on Corporate Governance and Compliance

Blog banner

From Procrastinator to Performer: How to Beat the Last-Minute Rush

Blog banner

Technological Advancement

Blog banner

Photography

Blog banner

Building a Better You: Fitness Tips and Inspiration.

Blog banner

Linux Memory Management

Blog banner

ITIL Version 3 and 4 differenciation?

Blog banner

Computer Security

Blog banner

Deadlock and Starvation

Blog banner

Virtual Memory - Explaination, Working, Steps

Blog banner

Zomato (Income Sources)

Blog banner

The art of being alone

Blog banner

What is a Malware ?

Blog banner

What is semaphore in operating system?

Blog banner

12 Principles of Animation

Blog banner

The Joy of Giving: How Festivals Teach Children Empathy and Gratitude

Blog banner

History of ITIL

Blog banner

Efficiency of SQL Injection Method in Preventing E-Mail Hacking

Blog banner

Device driver

Blog banner

Multiprocessor scheduling

Blog banner