When I implement Runnable interface and check isInterrupted() in the run method, it won't compile because isInterrupted() is a member of Thread. Since it's a non static member, I can't also invoke like Thread.isInterrupted(). How do I handle that? I can use the static method interrupted(), but that's going to reset the interrupted flag and I don't want that.
Peter den Haan
posted 16 years ago
You're looking for Thread.currentThread().isInterrupted()? - Peter