I wrote a program that automatically sorts programming tasks submitted by students. Reflection is used to load classes and create objects. Unintended endless cycles are a common mistake in student assignments. A stream is assigned to each student submission. The monitor monitors the running time of the threads and uses the stop()
method to terminate threads that exceed the maximum allowable time. My program works as intended, but the stop()
method in java.lang.Thread
deprecated. I would really appreciate some advice on cleaner solutions.
Thanks.
Jenks source share