Home exam - review
Downloaded the code and tested, wcet and blocking is working correctly. However, both exact and approx preemption seems to be incorrect.
Approx preemption should result in p1 = 90, p1 = 120, p3 = 0. With the response time of rt1 = 100, rt2 = 150, rt3 = 34.
Exact preemption should result in p1 = 90, p2 = 60 and p3 = 0. With the response time of rt1 = 100, rt2 = 90, and rt3 = 34, which can be verified with manual calculations of 7.22.
Further, there seems to be a "deadline miss" at row 107 when I'm running the code.