- This repo focus on 2 algorithms to detect deadlock from
WFG(wait-for-graph) and a smallJAVAprogram that creates a deadlock between 2 threads and detecting with JAVA tools. - We have implemented 2 algorithm in
pyto detect deadlock in a ds system- Wait for graph analysis🕸️
wfg.pyhas a *cycle in it which is the system forNOTES/TC1.jpegwfgWithoutCycle.pydoesn't have a cycle which is inNOTES/TC2.jpeg
- Chandy-Misra-Haas-Edge_chasing_algorithm⭕
Chandy-Misra-Haas-Edge_chasing_algorithmTC1.pyhas cycleChandy-Misra-Haas-Edge_chasing_algorithmTC2.pydoens't have cycle
- Wait for graph analysis🕸️
DEADLOCK CREATION/Deadlock.javacreated a deadlock using threads which is viewd with help ofjpsandjstack- There are 2
the_making.mdwhich will give you a insight how code and logic works.
├── Chandy-Misra-Haas-Edge_chasing_algorithmTC1.py
├── Chandy-Misra-Haas-Edge_chasing_algorithmTC2.py
├── DEADLOCK CREATION
│ ├── Deadlock.java
│ ├── out
│ │ └── production
│ │ └── DEADLOCK CREATION
│ │ ├── Deadlock.class
│ │ └── the_making.md
│ └── the_making.md
├── NOTES
│ ├── KHAN'S ALGORITHM.jpg
│ ├── TC1.jpeg
│ └── TC2.jpeg
├── the_making.md
├── wfg.py
└── wfgWithoutCycle.py