   return new ThreadPoolExecutor(5, 10, 5, TimeUnit.SECONDS,
       new ArrayBlockingQueue&lt;Runnable&gt;(10), tf);
 }
 </pre>
 <P>

 ForkJoinPool Example:
 <pre>
 ManagedThreadFactory threadFactory =
   InitialContext.doLookup("java:comp/DefaultManagedThreadFactory");

 ForkJoinPool pool = new ForkJoinPool(
     Runtime.getRuntime().availableProcessors(), threadFactory, null, false);

 ForkJoinTask&lt;Double&gt; totals = pool.submit(() -&gt; orders
     .parallelStream()
     .map(order -&gt; {
         i