[concurrency-interest] Canceling Futures - Callable implementations

Joe Bowbeer joe.bowbeer at gmail.com
Tue Apr 7 19:31:46 EDT 2009


2009/4/7 Tim Peierls

> 2009/4/7 Péter Kovács
>
>> One mechanism I am aware of is thread interruption, but practice shows
>> that relying on this mechanism is highly unsafe. [...]
>>
>
> In defense of interruption: [...]
>
>
To be clear, I wasn't passing judgment on Thread.interrupt.  It is the only
general mechanism we have.  However, it is not always possible or desirable,
which is why Future.cancel includes a "mayInterruptIfRunning" flag.

Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20090407/46f825c2/attachment.html>


More information about the Concurrency-interest mailing list