A fact on java that many people do not realize: it is not trivial to actually “stop” a thread. All the methods like “destroy()” and the likes are depcrecated and have been for a long time because these methods are NOT safe to use.
I am currently in the process of finding out how to stop java from doing something like continuing an infinite loop nested deeply within a method call of a library. I’ll post my solution or the reason why it won’t work.
Addition: must correct myself “destroy” is not deprecated: it was never implemented. But “stop, resume and suspend” are deprecated. For those who think that by assigning “null” to the variable that you kept the reference to the thread in: go back to learning basic java principles. No not really: there is always a reference in some ThreadGroup object to all threads running. But everybody should know that assigning “null” to something is code smell or rather stink!