Added the ability to check currently running judge threads and safely create temporary threads.