public class DeepNettsThreadPool extends Object
Modifier and Type | Method and Description |
---|---|
static int[] |
calculateCellsPerThread(int width,
int threadCount) |
static DeepNettsThreadPool |
getInstance() |
int |
getThreadCount() |
void |
run(Collection<Callable<Void>> tasks) |
void |
run(Runnable task) |
void |
shutdown() |
void |
shutdownNow() |
Future<?> |
submit(Callable<?> task)
Submit a single task to thread pool.
|
public static DeepNettsThreadPool getInstance()
public void run(Collection<Callable<Void>> tasks) throws InterruptedException
InterruptedException
public Future<?> submit(Callable<?> task)
task
- public void run(Runnable task)
public void shutdown()
public void shutdownNow()
public final int getThreadCount()
public static int[] calculateCellsPerThread(int width, int threadCount)
Copyright © 2022. All rights reserved.