Deadlock in Parallel and
Distributed Computing
Course Name : Parallel and distributed computing
Course Code : CSE21856
Submitted To :
Debdutta Pal
Professor, Adamas University.
Submitted By :
Anupam Das
PG/SOET/210/24/003
Defining Deadlock: Circular Wait
The Core Concept
In a distributed system, deadlock refers to a situation where a set
of processes or threads are unable to proceed because each one is
waiting for a resource that is held by another process in the set.
Conditions for Deadlock
• Mutual exclusion: non-sharable resources.
• Hold and wait: holding resources while requesting
more.
• No preemption: resources cannot be forcibly taken.
• Circular wait: a circular chain of requests.
Real-World Deadlock Examples
Database Systems
Transactions wait for locks held by
others. This results in rollbacks,
impacting performance.
Operating Systems
Processes compete for memory,
files, and I/O. Resource contention
can lead to system stalls.
Distributed Systems
Services wait for responses in a
loop. This creates dependency
issues and downtime.
Deadlock Detection Methods
Resource Deadlock
Visual cycles show deadlock.
Communication Deadlock
Long waits for message
Line Lock
Cycle detection pinpoints deadlocks.
Deadlock Prevention
Strategies
Eliminate Mutual
Exclusion
Make resources
sharable.
Ordered Request
Requesting resource
should be less than
acquired process.
Process requests for all
the possible resources.
Collective Request
Deadlock Avoidance Techniques
1 Banker's Algorithm
Ensures a "safe state."
2 Resource Allocation
Graphs
Processes declare needs upfront.
3 Optimistic Approaches
Recover if deadlocks happen.
Strategies for Deadlock Recovery
1
Process Termination
Abort processes to free resources.
2
Resource Preemption
Take resources away from processes.
3
Rollback
Restore processes to a safe state.
Best Practices for Handling Deadlock
1
Design
Minimize contention with system and code review.
2
Lock Order
Prevent circular wait.
3
Timeouts
Detect deadlocks and trigger recovery.
4
Monitor
Track resource allocation for scenarios.
Thank You

More Related Content

PPT
Chapter06
PDF
Deadlock in distribute system by saeed siddik
PPTX
Os presentation final.pptxjjjjjdakajwsjjdhdfjff
PPTX
Locks In Disributed Systems
PPTX
Deadlocks in operating system
PPTX
Deadlock-in-Operating-Systems.pptx os os
PPTX
Deadlocks and Deadlock Detection Other Issues
ODP
Multithreading 101
Chapter06
Deadlock in distribute system by saeed siddik
Os presentation final.pptxjjjjjdakajwsjjdhdfjff
Locks In Disributed Systems
Deadlocks in operating system
Deadlock-in-Operating-Systems.pptx os os
Deadlocks and Deadlock Detection Other Issues
Multithreading 101

Similar to Deadlock-in-Parallel-and-Distributed-Computing.pptx (20)

PDF
Distributed deadlock
PPTX
Deadlock
PPT
OS Lecture 5.ppt
PDF
INTRODUCTION TO OPERATING SYSTEM_LESSON_5_SHARE.pdf
PPTX
Fail safe modeling for cloud services and applications
PPTX
DEADLOCK PREVENTION AND AVOIDANCE.pptx
PDF
Apps session wait_tables
PPTX
operating system
PPTX
operating system
PDF
DISTRIBUTED SYSTEM SOLVED PAPER 2024.pdf
DOCX
Computer Security
PPTX
Operating System of engineering technology.ppt
PPTX
Some Oracle AWR observations
PPTX
Overview of Deadlock unit 3 part 1
PDF
“Understanding Distributed Deadlocks: Causes, Detection
DOC
Wait events
PPTX
Computer Science Homework Help
PPTX
Deadlock in Operating System
PPTX
Deadlock and memory management -- Operating System
DOCX
Deadlock detection
Distributed deadlock
Deadlock
OS Lecture 5.ppt
INTRODUCTION TO OPERATING SYSTEM_LESSON_5_SHARE.pdf
Fail safe modeling for cloud services and applications
DEADLOCK PREVENTION AND AVOIDANCE.pptx
Apps session wait_tables
operating system
operating system
DISTRIBUTED SYSTEM SOLVED PAPER 2024.pdf
Computer Security
Operating System of engineering technology.ppt
Some Oracle AWR observations
Overview of Deadlock unit 3 part 1
“Understanding Distributed Deadlocks: Causes, Detection
Wait events
Computer Science Homework Help
Deadlock in Operating System
Deadlock and memory management -- Operating System
Deadlock detection
Ad

Recently uploaded (20)

PPTX
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
PDF
III.4.1.2_The_Space_Environment.p pdffdf
PDF
Soil Improvement Techniques Note - Rabbi
PPTX
Chemical Technological Processes, Feasibility Study and Chemical Process Indu...
PPTX
Feature types and data preprocessing steps
PPTX
Graph Data Structures with Types, Traversals, Connectivity, and Real-Life App...
PPTX
AUTOMOTIVE ENGINE MANAGEMENT (MECHATRONICS).pptx
PDF
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...
PPTX
Fundamentals of Mechanical Engineering.pptx
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PDF
August 2025 - Top 10 Read Articles in Network Security & Its Applications
PDF
BIO-INSPIRED ARCHITECTURE FOR PARSIMONIOUS CONVERSATIONAL INTELLIGENCE : THE ...
PPTX
Management Information system : MIS-e-Business Systems.pptx
PPTX
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
PPTX
Information Storage and Retrieval Techniques Unit III
PDF
UNIT no 1 INTRODUCTION TO DBMS NOTES.pdf
PDF
EXPLORING LEARNING ENGAGEMENT FACTORS INFLUENCING BEHAVIORAL, COGNITIVE, AND ...
PDF
distributed database system" (DDBS) is often used to refer to both the distri...
PPTX
communication and presentation skills 01
PPTX
tack Data Structure with Array and Linked List Implementation, Push and Pop O...
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
III.4.1.2_The_Space_Environment.p pdffdf
Soil Improvement Techniques Note - Rabbi
Chemical Technological Processes, Feasibility Study and Chemical Process Indu...
Feature types and data preprocessing steps
Graph Data Structures with Types, Traversals, Connectivity, and Real-Life App...
AUTOMOTIVE ENGINE MANAGEMENT (MECHATRONICS).pptx
SMART SIGNAL TIMING FOR URBAN INTERSECTIONS USING REAL-TIME VEHICLE DETECTI...
Fundamentals of Mechanical Engineering.pptx
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
August 2025 - Top 10 Read Articles in Network Security & Its Applications
BIO-INSPIRED ARCHITECTURE FOR PARSIMONIOUS CONVERSATIONAL INTELLIGENCE : THE ...
Management Information system : MIS-e-Business Systems.pptx
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
Information Storage and Retrieval Techniques Unit III
UNIT no 1 INTRODUCTION TO DBMS NOTES.pdf
EXPLORING LEARNING ENGAGEMENT FACTORS INFLUENCING BEHAVIORAL, COGNITIVE, AND ...
distributed database system" (DDBS) is often used to refer to both the distri...
communication and presentation skills 01
tack Data Structure with Array and Linked List Implementation, Push and Pop O...
Ad

Deadlock-in-Parallel-and-Distributed-Computing.pptx

  • 1. Deadlock in Parallel and Distributed Computing
  • 2. Course Name : Parallel and distributed computing Course Code : CSE21856 Submitted To : Debdutta Pal Professor, Adamas University. Submitted By : Anupam Das PG/SOET/210/24/003
  • 3. Defining Deadlock: Circular Wait The Core Concept In a distributed system, deadlock refers to a situation where a set of processes or threads are unable to proceed because each one is waiting for a resource that is held by another process in the set. Conditions for Deadlock • Mutual exclusion: non-sharable resources. • Hold and wait: holding resources while requesting more. • No preemption: resources cannot be forcibly taken. • Circular wait: a circular chain of requests.
  • 4. Real-World Deadlock Examples Database Systems Transactions wait for locks held by others. This results in rollbacks, impacting performance. Operating Systems Processes compete for memory, files, and I/O. Resource contention can lead to system stalls. Distributed Systems Services wait for responses in a loop. This creates dependency issues and downtime.
  • 5. Deadlock Detection Methods Resource Deadlock Visual cycles show deadlock. Communication Deadlock Long waits for message Line Lock Cycle detection pinpoints deadlocks.
  • 6. Deadlock Prevention Strategies Eliminate Mutual Exclusion Make resources sharable. Ordered Request Requesting resource should be less than acquired process. Process requests for all the possible resources. Collective Request
  • 7. Deadlock Avoidance Techniques 1 Banker's Algorithm Ensures a "safe state." 2 Resource Allocation Graphs Processes declare needs upfront. 3 Optimistic Approaches Recover if deadlocks happen.
  • 8. Strategies for Deadlock Recovery 1 Process Termination Abort processes to free resources. 2 Resource Preemption Take resources away from processes. 3 Rollback Restore processes to a safe state.
  • 9. Best Practices for Handling Deadlock 1 Design Minimize contention with system and code review. 2 Lock Order Prevent circular wait. 3 Timeouts Detect deadlocks and trigger recovery. 4 Monitor Track resource allocation for scenarios.