-
Notifications
You must be signed in to change notification settings - Fork 7
/
README.txt
54 lines (42 loc) · 856 Bytes
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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