https://www.baeldung.com/java-interrupted-exception这个链接的 3.1 说到: The purpose of the interrupt system is to provide a well-defined framework for allowing threads to interrupt tasks (potentially time-consuming ones) in other threads. A good way to think about interruption is that it doesn’t actually interrupt a running thread — it just requests that the thread interrupt itself at the next convenient opportunity.
我个人理解中断是一种协调机制,一般用来优雅关闭某种耗时操作,当这个异常被抛出来的时候,一般是线程的 Thread.interrupt()方法被调用了,证明有人想要中断当前所进行的任务。处理中断异常有两种选择,一种是恢复中断,不理外界想要中断的意图,继续埋头干活,只需要调用 Thread.interrupted()将线程的中断标记清除掉。另一种就是响应这个中断请求,结束任务并清理相关的资源,或者继续向上传播中断异常。