Skip to content

C++ Implementation of Chandy-Misra-Haas Deadlock Detection algorithm

Notifications You must be signed in to change notification settings

utkarshmankad/Chandy-Misra-Haas-AND-model

Repository files navigation

READ ME for Chandy-Misra-Haas Deadlock Detection Algorithm

---Source Code Files----

The file names are as follows - 
->chandy-misra-haas-main.cpp

The files are compiled using Visual Studio 2017 Community edition.

---Execution instructions---

Execute the code directly from Chandy-Misra-Haas-AND-model.exe file.

Enter the number of proccesses --------------input an integer value greater than 1

Enter the wait graph (enter values only 0 and 1)---------enter input values for the wait for graph(see sample) (n x n, n = no of proccesses)

Enter the proccess initiating the probe (between 1 and no. of proccesses)---------input an integer value

Press any key to exit.

----------Sample Input------------

Enter the number of proccesses
5
Enter the wait graph
0
0
1
0
0
1
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
Enter the proccess initiating the probe
3

About

C++ Implementation of Chandy-Misra-Haas Deadlock Detection algorithm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages