如果任何线程处于休眠或等待状态(即调用 sleep() 或 wait() ),那么使用 interrupt() 方法,可以通过抛出 InterruptedException 来中断线程执行。 如果线程未处于休眠或 ...
確定! 回上一頁