All thread blocked in a pool while handling multiple tasklist
I have some problems while using ThreadPoolExecutor
and I cannot figure it out.
I try to use two List<CompletableFuture<Void>> taskList
lists to store tasks and then submit to a threadpool but all threads are blocked and can not handle new requests. The code like this: