static void interruptDeadlockedThreads(L lockingThreads) { if (empty(lockingThreads)) ret; L threads = threadInfosToThreads(lockingThreads); if (empty(threads)) ret; Thread t = random(threads); print("Interrupting deadlocked thread " + quote(t.getName()) + " (out of " + l(lockingThreads) + ")"); t.interrupt(); }