aspose file tools
The moose likes Threads and Synchronization and the fly likes Interrupted  questions!  thx! Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply Bookmark "Interrupted  questions!  thx!" Watch "Interrupted  questions!  thx!" New topic
Author

Interrupted questions! thx!

Javan Li
Ranch Hand

Joined: Jul 24, 2002
Posts: 84
what's diff between isInterrupted() & interrupted() ?
Brendan Birt
Greenhorn

Joined: Nov 27, 2002
Posts: 2
interrupted works only on the current thread (Thread.currentThread), but isInterrupted will work on any thread.
Other than that, they're identical.
[ December 22, 2002: Message edited by: Brendan Birt ]
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18670
That's one difference between them. The other difference is explained in the API. (Actually, they both are explained there. )


"I'm not back." - Bill Harding, Twister
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Interrupted questions! thx!
 
Similar Threads
sleep method
Object
InterruptedException
Threads
Sleep method cannot be interrupted? Is it true?