SlideShare a Scribd company logo
Avoiding Dead Lock in Embedded
Systems
Presented by
V.Bharathi M.E.,M.B.A.,(Ph.D)
Asst.Prof - ECE
Kongunadu college of Engineering and Technology,Trichy
February 26, 20181
Avoiding Dead Lock in Embedded
Systems
2
Deadlock is a situation where two processes are each waiting for
the other to release a resource it held, or more than two processes
are waiting for resources in a circular chain, so that no one can
have the resource required and all stop running.
Deadlock can happen between processes, thread or task (in
vxWorks). And it can happen on any kinds of shared
resources. I use process here for discussion.
February 26, 20183
February 26, 20184
CONDITIONS FOR A DEADLOCK
There are three conditions in order for a deadlock to happen:
1. Each of the processes involved access multiple shared
resources.
2. Each of the processes involved hold some shared resources
while requiring other shared resources.
3. A circular waiting chain potentially possible.
February 26, 20185
Solutions for Avoiding Dead
lock
All the processes apply the same coding pattern
 Back-off algorithm
Avoid processes access multiple resources
Use some sort of watchdog to monitor the processes and if a
deadlock is detected
February 26, 20186
DINING
PHILOSOPHER’S PROBLEM
February 26, 20187
February 26, 20188
TheScenario
5 silent philosophers sit at around table with 5 bowls of
Each philosopher must‘alternately’think and eat
After eating, he needs to put down both forks so they
become available to others
February 26, 20189
February 26, 201810
Methods to avoid deadlock:
Allow at most four philosophers to be sitting simultaneously
 Allow a philosopher to pick up her chopsticks only if both
chopsticks are available (pick them up is a critical section)
February 26, 201811
February 26, 201812
February 26, 201813

More Related Content

PDF
Deadlock in distribute system by saeed siddik
PDF
Comparative Study of Mutual Exclusion Algorithms in Distributed Systems
PPTX
Deadlocks and Deadlock Detection Other Issues
PPTX
Synchronization-and-Concurrency-Unit V.pptx
PDF
“Understanding Distributed Deadlocks: Causes, Detection
PPTX
Os presentation final.pptxjjjjjdakajwsjjdhdfjff
PPTX
Bankers algorithm pbl project based ppt.
PPTX
Deadlock in Operating System
Deadlock in distribute system by saeed siddik
Comparative Study of Mutual Exclusion Algorithms in Distributed Systems
Deadlocks and Deadlock Detection Other Issues
Synchronization-and-Concurrency-Unit V.pptx
“Understanding Distributed Deadlocks: Causes, Detection
Os presentation final.pptxjjjjjdakajwsjjdhdfjff
Bankers algorithm pbl project based ppt.
Deadlock in Operating System

Similar to Avoiding dead lock in embedded systems (20)

PPTX
input and output protection.pptx
PPTX
Deadlock-in-Operating-Systems.pptx os os
PDF
Improved Deadlock Prevention Algorithms in Distributed Systems
PPT
Deadlock in operating systems
PDF
ikh311-05
PPT
Process Synchronization And Deadlocks
DOCX
Deadlock detection
PDF
Distributed deadlock
PPTX
DEADLOCK PREVENTION AND AVOIDANCE.pptx
PPTX
Operating system - Deadlock
PPT
Os module 2 d
PDF
A Dynamic and Improved Implementation of Banker’s Algorithm
PDF
Design & Development of an Advanced Database Management System Using Multiver...
PDF
F017213747
PDF
F017213747
DOC
Deadlock- System model, resource types, deadlock problem, deadlock characteri...
DOCX
Deadlocks with example in Operating System.docx
PPT
Chapter06
PDF
Implementation of Banker’s Algorithm Using Dynamic Modified Approach
PDF
Implementation of Banker’s Algorithm Using Dynamic Modified Approach
input and output protection.pptx
Deadlock-in-Operating-Systems.pptx os os
Improved Deadlock Prevention Algorithms in Distributed Systems
Deadlock in operating systems
ikh311-05
Process Synchronization And Deadlocks
Deadlock detection
Distributed deadlock
DEADLOCK PREVENTION AND AVOIDANCE.pptx
Operating system - Deadlock
Os module 2 d
A Dynamic and Improved Implementation of Banker’s Algorithm
Design & Development of an Advanced Database Management System Using Multiver...
F017213747
F017213747
Deadlock- System model, resource types, deadlock problem, deadlock characteri...
Deadlocks with example in Operating System.docx
Chapter06
Implementation of Banker’s Algorithm Using Dynamic Modified Approach
Implementation of Banker’s Algorithm Using Dynamic Modified Approach
Ad

More from Bharathi Venkatachalam (7)

PDF
Introduction to Signals and Systems and basics
PDF
Introduction to Linear Integrated Circuits
PDF
Biotelemetry and radio pill
PDF
Eindhoven triangle
PDF
Inroduction to bio sensors
PDF
Medical electronics slide share
PDF
introduction to Micro Processor and Microcontroller
Introduction to Signals and Systems and basics
Introduction to Linear Integrated Circuits
Biotelemetry and radio pill
Eindhoven triangle
Inroduction to bio sensors
Medical electronics slide share
introduction to Micro Processor and Microcontroller
Ad

Recently uploaded (20)

PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
additive manufacturing of ss316l using mig welding
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
DOCX
573137875-Attendance-Management-System-original
PPTX
web development for engineering and engineering
PPTX
OOP with Java - Java Introduction (Basics)
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PDF
PPT on Performance Review to get promotions
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
additive manufacturing of ss316l using mig welding
bas. eng. economics group 4 presentation 1.pptx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Automation-in-Manufacturing-Chapter-Introduction.pdf
573137875-Attendance-Management-System-original
web development for engineering and engineering
OOP with Java - Java Introduction (Basics)
Operating System & Kernel Study Guide-1 - converted.pdf
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Embodied AI: Ushering in the Next Era of Intelligent Systems
CYBER-CRIMES AND SECURITY A guide to understanding
Lecture Notes Electrical Wiring System Components
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPT on Performance Review to get promotions
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf

Avoiding dead lock in embedded systems

  • 1. Avoiding Dead Lock in Embedded Systems Presented by V.Bharathi M.E.,M.B.A.,(Ph.D) Asst.Prof - ECE Kongunadu college of Engineering and Technology,Trichy February 26, 20181
  • 2. Avoiding Dead Lock in Embedded Systems 2
  • 3. Deadlock is a situation where two processes are each waiting for the other to release a resource it held, or more than two processes are waiting for resources in a circular chain, so that no one can have the resource required and all stop running. Deadlock can happen between processes, thread or task (in vxWorks). And it can happen on any kinds of shared resources. I use process here for discussion. February 26, 20183
  • 5. CONDITIONS FOR A DEADLOCK There are three conditions in order for a deadlock to happen: 1. Each of the processes involved access multiple shared resources. 2. Each of the processes involved hold some shared resources while requiring other shared resources. 3. A circular waiting chain potentially possible. February 26, 20185
  • 6. Solutions for Avoiding Dead lock All the processes apply the same coding pattern  Back-off algorithm Avoid processes access multiple resources Use some sort of watchdog to monitor the processes and if a deadlock is detected February 26, 20186
  • 9. TheScenario 5 silent philosophers sit at around table with 5 bowls of Each philosopher must‘alternately’think and eat After eating, he needs to put down both forks so they become available to others February 26, 20189
  • 11. Methods to avoid deadlock: Allow at most four philosophers to be sitting simultaneously  Allow a philosopher to pick up her chopsticks only if both chopsticks are available (pick them up is a critical section) February 26, 201811