Skip to content

A C++ program to simulate the detection of deadlocked processes on a CPU.

Notifications You must be signed in to change notification settings

rifatHaqueGIT/deadlock-detect

Repository files navigation

deadlock detection - skeleton for Assignment 4

To compile all code, type:

$ make

To run the resulting code on file test1.txt:

$ ./deadlock < test1.txt

IMPORTANT

Only modify and submit the deadlock_detector.cpp file. Your TAs will supply their own versions of the other files (such as main.cpp) to compile and test your code.

Test files

These are the correct results for the test files included in this repo.

filename correct edge_index correct dl_procs minimum timings good timings
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,77] 0.0000s 0.0000s
test6.txt 9903 [ab,cd,ef] 8.9431s 0.8771s
test7.txt 29941 [is,this,answer,the,correct] 191.7872s 8.0726s

About

A C++ program to simulate the detection of deadlocked processes on a CPU.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published