Class ThreadSafeSpeedTest
- java.lang.Object
-
- com.singularsys.jepexamples.diagnostics.ThreadSpeedTest
-
- com.singularsys.jepexamples.diagnostics.ThreadSafeSpeedTest
-
public class ThreadSafeSpeedTest extends ThreadSpeedTest
A diagnostic application using theThreadSafeEvaluatorand a variable number of threads.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classThreadSafeSpeedTest.EvaluationThreadA 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 Constructor Description ThreadSafeSpeedTest(java.lang.String expression, java.lang.String varName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)java.lang.ThreadmakeThread(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
analyize, getExpression, go, loop
-
-
-
-
Constructor Detail
-
ThreadSafeSpeedTest
public ThreadSafeSpeedTest(java.lang.String expression, java.lang.String varName) throws ParseException- Throws:
ParseException
-
-
Method Detail
-
makeThread
public java.lang.Thread makeThread(int index, double min, double max, int nItts) throws JepExceptionDescription 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
public static void main(java.lang.String[] args)
- Parameters:
args-
-
-