OCPJP711.3 Word Scramble
|
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.
Normal Size Small Size show me how
Normal Size Small Size show me how
[11.3.1]Use Executors and ThreadPools (OCP Objective 11.3) | Use Executor, ExecutorService, Executors, Callable, and Future to execute tasks using thread pools. |
[11.3.2]name of Executor factory class | Executors.newFixedThreadPool(100) returns Executor or ExecutorService |
[11.3.3}how to handle tasks | execute,submit,invokeAny,invokeAll --> you can submit a task in the form of a Runnable,or Callable, or collection of Callable instances |
[11.3.4]graceful finishing | shutdown or shutdownNow |
[11.3.5]highly specialized type of Executor | Fork-Join framework [at a time only a single FJF should be run in an application] |
[11.3.6]base classes to extend while creating multiple subtasks | RecursiveAction or RecursiveTask which extend abstract class ForkJoinTask |
[11.3.7]method of RecursiveAction or RecursiveTask is compute() | new ForkJoinPoll().invoke(task) |
[11.3.8] LinkedTransferQueue |
Created by:
MVK2013
Popular Computers sets