M
Matthias Kaeppler
Hi,
I was wondering if this method, as implemented by e.g. the FutureTask
class, allows me to terminate a thread?
I created an ExecutorService and submit()-ed a Future object, which I
initialized with another object implementing runnable. The thread is
started correctly, but calling cancel() on this future object doesn't
seem to have any effect (although it returns true, indicating that
cancellation of the task succeeded).
How come?
I was wondering if this method, as implemented by e.g. the FutureTask
class, allows me to terminate a thread?
I created an ExecutorService and submit()-ed a Future object, which I
initialized with another object implementing runnable. The thread is
started correctly, but calling cancel() on this future object doesn't
seem to have any effect (although it returns true, indicating that
cancellation of the task succeeded).
How come?