public class MulticoreExecutor extends Object
| Constructor and Description |
|---|
MulticoreExecutor() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getThreadPoolSize()
Returns the number of threads in the thread pool.
|
static <T> List<T> |
run(Collection<? extends Callable<T>> tasks)
Executes the given tasks serially or parallel depending on the number
of cores of the system.
|
public static int getThreadPoolSize()
public static <T> List<T> run(Collection<? extends Callable<T>> tasks) throws Exception
tasks - the collection of tasks.Exception - if unable to compute a result.Copyright © 2015. All rights reserved.