Why a thread would interrupt another thread [duplicate]
问题 This question already has answers here : What kind of behaviour causes an interrupted exception? (7 answers) Closed 6 years ago . In Java multi threaded applications, we deal with InterruptedThreadException. This Exception is thrown if another thread interrupts the current thread. Now what is the reason another thread might want to interrupt the current thread when it knows that it is going to cause an Exception? 回答1: Many reasons. But the most popular one is to cancel some task on a thread.