쓰레드 종료하는 메소드 stop이 권장 메소드가 아니네요.
그럼 어떻게 쓰레드를 종료시키는게 좋아요?
플래그 변수로 컨트롤
http://docs.oracle.com/javase/7/docs/api/java/lang/Thread.html#interrupt()
자연스럽게 끝나도록
인터럽트 매커니즘 복잡해
그렇군여... 전 그냥 stop으로 꺼야겠습니다.
this.interrupt
자연스럽게 끝나게 하라고..
http://stackoverflow.com/questions/5915156/how-can-i-kill-a-thread-without-using-stop
플래그 변수로 컨트롤
http://docs.oracle.com/javase/7/docs/api/java/lang/Thread.html#interrupt()
자연스럽게 끝나도록
인터럽트 매커니즘 복잡해
그렇군여... 전 그냥 stop으로 꺼야겠습니다.
this.interrupt
자연스럽게 끝나게 하라고..
http://stackoverflow.com/questions/5915156/how-can-i-kill-a-thread-without-using-stop