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.