Java question: As far as I know, there are two ways to check inside a thread whether the thread received an interrupt signal, Thread.interrupted() and Thr
Thread.interrupted()
Thr
If you use interrupted, what you're asking is "Have I been interrupted since the last time I asked?"
interrupted
isInterrupted tells you whether the thread you call it on is currently interrupted.
isInterrupted