ExecutorService executorService = Executors.newSingleThreadExecutor();
Set> callables = new HashSet>();
c
You mean if the parent thread will wait for all the thread created using your ExecutorService
invocation? Then answer is yes, parent thread will wait and once all threads are finished you will get the list of Futures
object which will hold the result of each thread execution.
See below from ExecutorService.invokeAll()
Executes the given tasks, returning a list of Futures holding their status and results when all complete.