java InterruptedException 当线程处于waiting或者sleeping状态的时候,调用interrupt方法的时候就,阻塞的线程就会抛出异常,当线程处于运行状态的时候,interrupt只会把线程的状态设置一个中断的标记位,其他不会做任何事情。