Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
douglascraigschmidt committed Feb 19, 2017
1 parent b91dd91 commit e3aab00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SearchTaskGang/src/OneShotExecutorService.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ protected void initiateTaskGang(int inputSize) {
(ExecutorService) getExecutor();

// Use invokeAll() to execute all items in the collection
// via the Executor's Thread pool.
// via the Executor's Thread pool. Note that this
// invocation blocks the calling thread until all the
// processing is finished.
executorService.invokeAll(workerCollection);
} catch (InterruptedException e) {
System.out.println("invokeAll() interrupted");
Expand Down

0 comments on commit e3aab00

Please sign in to comment.