RE: Future.isCancelled and thread interruption

2022-02-28 Thread Pushkar N Kulkarni
Hi David, Thank you. So, I had the wrong notion of Thread.interrupt() also causing the signalling of the underlying OS thread. With that corrected, things have started making sense. Appreciate you taking the time to respond! On 01/03/22, 7:59 AM, "David Holmes" wrote: Hi, On 1/03/2

Re: Future.isCancelled and thread interruption

2022-02-28 Thread David Holmes
Hi, On 1/03/2022 4:17 am, Pushkar N Kulkarni wrote: "Future.cancel(true)" cancels the receiver Future and also attempts to interrupt the executor thread that is running this task. However, not all threads may be interrupted. An exception are threads that executing one of the "restart-able bloc

Future.isCancelled and thread interruption

2022-02-28 Thread Pushkar N Kulkarni
"Future.cancel(true)" cancels the receiver Future and also attempts to interrupt the executor thread that is running this task. However, not all threads may be interrupted. An exception are threads that executing one of the "restart-able blocking system calls" from libnet. Such threads will ig