Slides Concurrency Additional Thread Pools Callable Submit and the Future
Slides Concurrency Additional Thread Pools Callable Submit and the Future
On this slide, I'm showing you the method signatures for both the execute and
submit methods.
method signature
Tasks Executed At least one, the first to complete. All tasks get executed.
Returns a list of results, as futures, for all
Result of the first task to complete, not
Result of the tasks, once they have all
a Future.
completed.
Use this method when you need a Use this method when you want all the
quick response back from one of tasks to be executed concurrently, and
Use cases
several tasks, and you don't care if all tasks must complete before
some will fail. proceeding.