3
Most read
5
Most read
10
Most read
Deadlock
Presentation on
2
Submitted By:
1. Rup Chowdhury
ID: 201120010
2. Prapti Das
ID: 201120008
Submitted To:
Mostafiz Ahmed
Lecturer, Department of CSE
Notre Dame University Bangladesh
3
What is Deadlock?
Deadlock is a situation where a set of processes are
blocked because each process is holding a resource
and waiting for another resource acquired by some
other process.
A deadlock is a situation in which two computer
programs sharing the same resource are effectively
preventing each other from accessing the resource,
resulting in both programs ceasing to function.
4
Why Deadlock Occurs?
Deadlock occurs when a set of processes are in a wait
state, because each process is waiting for a resource that
is held by some other waiting process. Therefore, all
deadlocks involve conflicting resource needs by two or
more processes.
5
Traffic gridlock is an everyday example of a deadlock situation.
6
How Deadlock Occurs?
Deadlock can occur in a system if these 4 conditions satisfies in a system
simultaneously
1. Mutual Exclusion
2. Hold and Wait
3. No preemption
4. Circular Wait
7
Resource Allocation Graph
T1 T2 T3
R3
R1
R2
R4
Here, one instance of R3 is assigned to
T3. And T3 is not depending on
anyone. So after completing the
process the instance of R3 will be
freed.
T2 requested for R3. Now R3 is
free so it can be assigned to T2.
8
Resource Allocation graph with deadlock
T1 T2 T3
R3
R1
R2
R4
Deadlock!
9
T1
T2
T3
R1
R2
T4
Resource allocation graph with a cycle but no deadlock
10
Handling Deadlock
• Ignoring Deadlock
• Preventing or Avoiding Deadlock
• Let the system fall in Deadlock
11
Thanks!
Any questions?

More Related Content

PPTX
Deadlock-in-Operating-Systems.pptx os os
PDF
Deadlock in distribute system by saeed siddik
PDF
Distributed deadlock
PDF
ikh311-05
DOCX
What is a deadlock
PPTX
Overview of Deadlock unit 3 part 1
PPT
Deadlock in operating systems
PPTX
3.6 Deadlock-operating system unit 3.pptx
Deadlock-in-Operating-Systems.pptx os os
Deadlock in distribute system by saeed siddik
Distributed deadlock
ikh311-05
What is a deadlock
Overview of Deadlock unit 3 part 1
Deadlock in operating systems
3.6 Deadlock-operating system unit 3.pptx

Similar to Deadlock (20)

PPTX
Untitled presentation.pptx os ppt deadlock prevention
PPTX
Deadlocks and Deadlock Detection Other Issues
PPTX
DEADLOCKPrevention in process management.pptx
PPTX
Deadlock Presentation
PPTX
Synchronization-and-Concurrency-Unit V.pptx
PDF
“Understanding Distributed Deadlocks: Causes, Detection
PPTX
Os presentation final.pptxjjjjjdakajwsjjdhdfjff
PPTX
Deadlock Avoidance in Operating System
PPT
Chapter 03
PPTX
Deadlock-in-Parallel-and-Distributed-Computing.pptx
PPTX
PPTX
Deadlocks
PPTX
deadlock detection using Goldman's algorithm by ANIKET CHOUDHURY
PPTX
Operating system - Deadlock
PPT
Chapter06
PPTX
OS Unit 3.pptx
PPTX
Deadlockpresentation.pptx
PPTX
Deadlock detection & prevention
DOCX
Deadlock detection
Untitled presentation.pptx os ppt deadlock prevention
Deadlocks and Deadlock Detection Other Issues
DEADLOCKPrevention in process management.pptx
Deadlock Presentation
Synchronization-and-Concurrency-Unit V.pptx
“Understanding Distributed Deadlocks: Causes, Detection
Os presentation final.pptxjjjjjdakajwsjjdhdfjff
Deadlock Avoidance in Operating System
Chapter 03
Deadlock-in-Parallel-and-Distributed-Computing.pptx
Deadlocks
deadlock detection using Goldman's algorithm by ANIKET CHOUDHURY
Operating system - Deadlock
Chapter06
OS Unit 3.pptx
Deadlockpresentation.pptx
Deadlock detection & prevention
Deadlock detection
Ad

More from Rup Chowdhury (14)

PDF
An Industry report on Si Chuan Garden Cafe
PPTX
Paper Presentation on Improvement in Smart Agriculture using different techno...
DOCX
Lab Practices and Works Documentation / Report on Computer Graphics
PPTX
Enterprise Resource Planning
PPTX
FPGA, VLSI design flow using HDL, introduction to behavior, logic and physica...
PPTX
Smart Traffic Controlling System
PPTX
Virtual Reality and Augmented Reality
PPTX
External Memory
PPTX
Overview of Microcontroller and ATMega32 microcontroller
PPTX
Hospital Management System
PPTX
NFA and DFA
PDF
Environment Setup for Programming Languages
PPTX
Switch Case in C Program
PPTX
Environmental Problems and Natural Disaster and Social Crisis
An Industry report on Si Chuan Garden Cafe
Paper Presentation on Improvement in Smart Agriculture using different techno...
Lab Practices and Works Documentation / Report on Computer Graphics
Enterprise Resource Planning
FPGA, VLSI design flow using HDL, introduction to behavior, logic and physica...
Smart Traffic Controlling System
Virtual Reality and Augmented Reality
External Memory
Overview of Microcontroller and ATMega32 microcontroller
Hospital Management System
NFA and DFA
Environment Setup for Programming Languages
Switch Case in C Program
Environmental Problems and Natural Disaster and Social Crisis
Ad

Recently uploaded (20)

PDF
737-MAX_SRG.pdf student reference guides
PPT
INTRODUCTION -Data Warehousing and Mining-M.Tech- VTU.ppt
PDF
August -2025_Top10 Read_Articles_ijait.pdf
PPTX
CyberSecurity Mobile and Wireless Devices
PDF
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
PDF
22EC502-MICROCONTROLLER AND INTERFACING-8051 MICROCONTROLLER.pdf
PPTX
introduction to high performance computing
PPTX
communication and presentation skills 01
PDF
EXPLORING LEARNING ENGAGEMENT FACTORS INFLUENCING BEHAVIORAL, COGNITIVE, AND ...
PDF
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF
PPTX
Module 8- Technological and Communication Skills.pptx
PDF
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
PDF
Design Guidelines and solutions for Plastics parts
PDF
Improvement effect of pyrolyzed agro-food biochar on the properties of.pdf
PDF
Influence of Green Infrastructure on Residents’ Endorsement of the New Ecolog...
PPTX
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
PDF
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...
PPTX
tack Data Structure with Array and Linked List Implementation, Push and Pop O...
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
PPTX
AUTOMOTIVE ENGINE MANAGEMENT (MECHATRONICS).pptx
737-MAX_SRG.pdf student reference guides
INTRODUCTION -Data Warehousing and Mining-M.Tech- VTU.ppt
August -2025_Top10 Read_Articles_ijait.pdf
CyberSecurity Mobile and Wireless Devices
A SYSTEMATIC REVIEW OF APPLICATIONS IN FRAUD DETECTION
22EC502-MICROCONTROLLER AND INTERFACING-8051 MICROCONTROLLER.pdf
introduction to high performance computing
communication and presentation skills 01
EXPLORING LEARNING ENGAGEMENT FACTORS INFLUENCING BEHAVIORAL, COGNITIVE, AND ...
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF
Module 8- Technological and Communication Skills.pptx
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
Design Guidelines and solutions for Plastics parts
Improvement effect of pyrolyzed agro-food biochar on the properties of.pdf
Influence of Green Infrastructure on Residents’ Endorsement of the New Ecolog...
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...
tack Data Structure with Array and Linked List Implementation, Push and Pop O...
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
AUTOMOTIVE ENGINE MANAGEMENT (MECHATRONICS).pptx

Deadlock

  • 2. 2 Submitted By: 1. Rup Chowdhury ID: 201120010 2. Prapti Das ID: 201120008 Submitted To: Mostafiz Ahmed Lecturer, Department of CSE Notre Dame University Bangladesh
  • 3. 3 What is Deadlock? Deadlock is a situation where a set of processes are blocked because each process is holding a resource and waiting for another resource acquired by some other process. A deadlock is a situation in which two computer programs sharing the same resource are effectively preventing each other from accessing the resource, resulting in both programs ceasing to function.
  • 4. 4 Why Deadlock Occurs? Deadlock occurs when a set of processes are in a wait state, because each process is waiting for a resource that is held by some other waiting process. Therefore, all deadlocks involve conflicting resource needs by two or more processes.
  • 5. 5 Traffic gridlock is an everyday example of a deadlock situation.
  • 6. 6 How Deadlock Occurs? Deadlock can occur in a system if these 4 conditions satisfies in a system simultaneously 1. Mutual Exclusion 2. Hold and Wait 3. No preemption 4. Circular Wait
  • 7. 7 Resource Allocation Graph T1 T2 T3 R3 R1 R2 R4 Here, one instance of R3 is assigned to T3. And T3 is not depending on anyone. So after completing the process the instance of R3 will be freed. T2 requested for R3. Now R3 is free so it can be assigned to T2.
  • 8. 8 Resource Allocation graph with deadlock T1 T2 T3 R3 R1 R2 R4 Deadlock!
  • 9. 9 T1 T2 T3 R1 R2 T4 Resource allocation graph with a cycle but no deadlock
  • 10. 10 Handling Deadlock • Ignoring Deadlock • Preventing or Avoiding Deadlock • Let the system fall in Deadlock

Editor's Notes

  • #7: Mutual exclusion - Each resource is either currently allocated to exactly one process or it is available. (Two processes cannot simultaneously control the same resource or be in their critical section). Hold and Wait - processes currently holding resources can request new resources No preemption - Once a process holds a resource, it cannot be taken away by another process or the kernel. Circular wait - Each process is waiting to obtain a resource which is held by another process.
  • #8: This is a resource allocation graph. Where there are three threads. Here is 4 types of processes and 3 types of Threads or processes. To perform each process, different numbers of instances are needed. Here R3 is assigned to T3.