The Thread.stop() method can be used to kill a thread but it is unsafe and thus deprecated.
Other way would be to have a variable indicating if the thread should be stopped. Other threads may set the variable to make the thread stop. Then, the thread itself may clean up and stop.
How to kill a thread?
Related Answered Questions
Related Open Questions