- All Implemented Interfaces:
- TaskExecutor
public class DefaultTaskExecutor
extends Object
implements TaskExecutor
Default TaskExecutor based on a
(a) ForkJoinPool (for CPU tasks that are ForkJoin RecursiveTask/RecursiveAction, for example)
(b) ThreadPoolExecutor (for all other tasks)
number of threads set to the number of processor (cores) by default, as per the
Runtime.getRuntime().availableProcessors() method
Otherwise, set number of threads using "org.nd4j.parallel.cpu.taskexecutorthreads" system property