static int killThreadsOfExpiredMainClasses() { L l = expiredMainClasses(); int n = 0; for (Class c : l) { L threads = registeredThreads(c); n += l(threads); interruptThreads(threads); } ret n; }