【文件属性】:
文件名称:CPSC457A4-1
文件大小:932KB
文件格式:ZIP
更新时间:2021-03-29 01:39:18
C++
死锁检测-分配4的骨架
要编译所有代码,请输入:
$ make
要在文件test1.txt上运行结果代码:
$ ./deadlock < test1.txt
重要的
仅修改并提交deadlock_detector.cpp文件。 您的TA将提供自己的其他文件版本(例如main.cpp)来编译和测试您的代码。
测试文件
该存储库包含几个测试文件。 这是这些测试文件的正确结果。
测试文件
正确的edge_index
正确的周期
最短时间
好的时机
test1.txt
-1
[]
0.0000s
0.0000s
test2.txt
5
[5,7]
0.0000s
0.0000s
test3.txt
3
[p7,p3]
0.0000s
0.0000s
test4.txt
3
[12,7]
0.0000s
0.0000s
test5.txt
6
[2
【文件预览】:
CPSC457A4-1-master
----test5.txt(70B)
----test3.txt(46B)
----common.h(2KB)
----deadlock_detector.h(515B)
----deadlock_detector.cpp(3KB)
----test6.out(62B)
----.clang-format(268B)
----common.cpp(2KB)
----main.cpp(2KB)
----test7.txt(1.34MB)
----.gitignore(16B)
----Makefile(428B)
----test6.txt(124KB)
----README.md(1KB)
----test2.txt(43B)
----test4.txt(70B)
----test1.txt(114B)