Class ThreadSafeSpeedTest
java.lang.Object
com.singularsys.jepexamples.diagnostics.ThreadSpeedTest
com.singularsys.jepexamples.diagnostics.ThreadSafeSpeedTest
A diagnostic application using the
ThreadSafeEvaluator
and a variable number of threads.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA thread which evaluates an expression multiple times. -
Field Summary
Fields inherited from class com.singularsys.jepexamples.diagnostics.ThreadSpeedTest
base, baseJep, MAX_LOOPS, MAX_THREADS, N_TERMS, TOTAL_ITTS, varName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidmakeThread(int index, double min, double max, int nItts) Make a thread to evaluate an expression multiple times.Methods inherited from class com.singularsys.jepexamples.diagnostics.ThreadSpeedTest
analyze, getExpression, go, loop
-
Constructor Details
-
ThreadSafeSpeedTest
- Throws:
ParseException
-
-
Method Details
-
makeThread
Description copied from class:ThreadSpeedTestMake a thread to evaluate an expression multiple times. Can be overridden to change how threads are created. This version usesThreadSpeedTest.EvaluationThread- Overrides:
makeThreadin classThreadSpeedTest- Parameters:
index- the number of this threadmin- minimum value for variablemax- maximum value for variablenItts- number of iterations- Returns:
- the thread
- Throws:
JepException
-
main
- Parameters:
args-
-