Thread Interrupt

Thread.interrupt: to set interupt flag.

Thread.interrupted: static method. When a thread checkes for an interrupt, interrupt status is cleared.

isInterrupted: non-static method. Used to query interrupt status, will not clear interrupt status.

你可能感兴趣的:(Thread Interrupt)