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: 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
本文链接:https://www.haomeiwen.com/subject/dapqmttx.html
网友评论