Can't stop a task which is started using ExecutorService
Sorry I have to open a new thread to describe this problem. This morning I asked this question , there're some replies but my problem is still not solved. This time I will attach some runnable code(simplified but with the same problem) for you to reproduce the problem: public class ThreadPoolTest { public static void main(String[] args) throws Exception { final ExecutorService taskExecutor = Executors.newFixedThreadPool(5); Future<Void> futures[] = new Future[5]; for (int i = 0; i < futures.length; ++i) futures[i] = startTask(taskExecutor); for (int i = 0; i < futures.length; ++i) System.out