- invoke
Performs the given task, returning its result upon completion. If the
computation encounters an unch
- <init>
Creates a ForkJoinPool with the given parameters.
- execute
Arranges for (asynchronous) execution of the given task.
- addWorker
Tries to create and start a worker; minimally rolls back counts on failure.
- checkPermission
If there is a security manager, makes sure caller has permission to modify
threads.
- deregisterWorker
Final callback from terminating worker. Removes record of worker from array, and
adjusts counts. If
- getParallelism
Returns the targeted parallelism level of this pool.
- getPoolSize
Returns the number of worker threads that have started but not yet terminated.
The result returned b
- idleAwaitWork
If inactivating worker w has caused pool to become quiescent, check for pool
termination, and wait f
- idlePerActive
Returns the approximate (non-atomic) number of idle threads per active thread.
- isTerminated
Returns true if all tasks have completed following shut down.
- managedBlock
Blocks in accord with the given blocker. If the current thread is a
ForkJoinWorkerThread, this metho