Forums Register Login

Interrupted questions! thx!

+Pie Number of slices to send: Send
what's diff between isInterrupted() & interrupted() ?
+Pie Number of slices to send: Send
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 ]
+Pie Number of slices to send: Send
That's one difference between them. The other difference is explained in the API. (Actually, they both are explained there. )
If you are using a wood chipper, you are doing it wrong. Even on this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 936 times.
Similar Threads
Object
Threads
Sleep method cannot be interrupted? Is it true?
InterruptedException
sleep method
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 04:00:58.