I\'m in the process of writing a piece of code that connects to a server spawns a bunch of threads using that connection and does a bunch of \"stuff\".
There are cer
Use your_thread.interrupt and check in your thread if Thread.interrupted() return true. If so, close your thread properly.