|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apfloat.samples.PiParallel.ThreadLimitedOperation
Class to execute operations while setting ApfloatContext.setNumberOfProcessors(int)
to some value.
Constructor Summary | |
PiParallel.ThreadLimitedOperation(Operation operation,
int numberOfProcessors)
Wrap an existing operation to a thread limited context. |
Method Summary | |
java.lang.Object |
execute()
Execute the operation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PiParallel.ThreadLimitedOperation(Operation operation, int numberOfProcessors)
operation
- The operation whose execution will have a limited number of threads available.numberOfProcessors
- The maximum number of threads that can be used in the execution.Method Detail |
public java.lang.Object execute()
execute
in interface Operation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |