An open API service indexing awesome lists of open source software.

https://github.com/themysterysolver/deadlock

"Simulation and deadlock detection,avoidance algorithms"
https://github.com/themysterysolver/deadlock

bankers-algorithm chandy-misra-haas java khan-s-algorithm python resouce-allocation-graph topological-sort wait-for-graph

Last synced: about 1 month ago
JSON representation

"Simulation and deadlock detection,avoidance algorithms"

Awesome Lists containing this project

README

          

### DEADLOCK SIMULATION AND DETECTIONπŸ”
- This repo focus on 2 algorithms to detect deadlock from `WFG`(*wait-for-graph*) and a small `JAVA` program that creates a deadlock between *2 threads* and detecting with JAVA tools.
- We have implemented **2** algorithm in `py` to detect *deadlock* in a ds system
- Wait for graph analysisπŸ•ΈοΈ
- `wfg.py` has a ***cycle** in it which is the system for `NOTES/TC1.jpeg`
- `wfgWithoutCycle.py` ***doesn't*** have a cycle which is in `NOTES/TC2.jpeg`
- Chandy-Misra-Haas-Edge_chasing_algorithmβ­•
- `Chandy-Misra-Haas-Edge_chasing_algorithmTC1.py` has cycle
- `Chandy-Misra-Haas-Edge_chasing_algorithmTC2.py` doens't have cycle
- `DEADLOCK CREATION/Deadlock.java` created a deadlock using threads which is viewd with help of `jps` and `jstack`
- There are **2** `the_making.md` which will give you a insight how code and logic works.
### πŸ“REPO STRUCTURE
```.
β”œβ”€β”€ 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
```