What does java.lang.Thread.interrupt() do?
http://stackoverflow.com/questions/3590000/what-does-java-lang-thread-interrupt-do If the targeted thread has been waiting (by calling wait(), or some other related methods that essentially do the same thing, such as sleep()), it will be interrupted, meaning that it stops waiting for what it was waiting for and receive an InterruptedException instead. It is completely up to th..