Originally Posted by Londbrok
Would not advice to use Thread.stop(). You should design your threads so that they can terminate naturally, that is "run out of code to execute". Only use while(true) loop, with no exit logic build in somewhere, when you do need a thread that runs forever. In such case, set the thread as daemon.
Since you have made a class that extends thread, you could give it a boolean, determining the running state. The element that needs to govern when the thread should stop would then set the boolean to false. So you´d use while(isRunning()) instead of while (true). Remember to synchronize access to the boolean.
When wroking with multiple threads, it is good to check if any of the ExecutorServices provided by Java would service you better than simply launching new Threads. Point of the crux is, that in many many cases Threads dont make better, or faster, applications. They are very handy quite often, but should be used with caution.