In Java programming, it is very common to use threads to perform multi tasks simultaneously. Starting a thread is pretty easy but stopping a thread might be a headache for some programmers, especially when the thread needs to run a task that takes some times.
전문보기 : http://www.snippetit.com/2009/06/java-stop-a-thread-correctly/