interrupt() v/s cancel()
Posted on 2012-03-28
what happens when Thread.currentthread.interrupt() is executed?
How is it different from Future.cancel() ?
"Threads created by Executor framework impliment an Interruption
policy that lets tasks be cancelled using interruption."- Brian Goetz.
Can anyone provide internal code for this? Does it mean something like
Public class Thread implements InterruptionPolicy ..?