|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.util.concurrency.EncogConcurrency
public class EncogConcurrency
This class abstracts thread pools, and potentially grids and other types of concurrency. It is used by other classes inside of Encog to allow tasks to be executed efficiently on multicore machines.
| Constructor Summary | |
|---|---|
EncogConcurrency()
Construct a concurrency object. |
|
| Method Summary | |
|---|---|
static EncogConcurrency |
getInstance()
|
void |
processTask(EncogTask task)
Process the specified task. |
void |
setMaxThreads(int maxThreads)
Set the maximum number of threads to use. |
void |
setMaxThreadsToCoreCount()
Set the max threads to the number of processors. |
void |
shutdown(long timeout)
Wait for all threads in the pool to complete. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EncogConcurrency()
| Method Detail |
|---|
public static EncogConcurrency getInstance()
public void processTask(EncogTask task)
task - The task to process.public void setMaxThreads(int maxThreads)
maxThreads - Maximum number of threads to use.public void setMaxThreadsToCoreCount()
public void shutdown(long timeout)
timeout - How long to wait for all threads to complete.
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||