|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsuramadu.tests.jitter.Jitter
This test measures the jitter of RealTime Java Threads. It IS specific to the RTSJ specification and may not be run in regular Java.
PURPOSE: This test provides an indication of timeliness in a RealTimeThreads both with and without competing non-realtime threads running in the system.
DESIGN: Given a periodic value for a thread, this test measures the actual time between periods. A periodic thread is set up, and a time measurement is taken immediately upon entering its run() method. The difference between the measurements taken indicates the actual time between the beginning of execution of the actual thread's code. Any deviation from the required period is 'jitter'. At the conclusion of the test, statistical calculations are performed upon these time measurements, and a summary is printed.
ASSUMPTIONS: This test uses RTSJ specified RealTimeThreads and NoHeapRealtimeThreads and requires an RTSJ implementation in order to run.
INPUTS:
Property | Default Value | Description |
---|---|---|
"iterations" | "1000" | |
"priority" | "250" | |
"period" | "1000" | |
"idelay" | "750" | |
"bgpriority" | "250" | |
"bgperiod" | "100" | |
"bgidelay" | "400" | |
"backgroundthreads" | "0" |
OUTPUTS: The output contains the maximum, minimum, median, mean, standard deviation and mode statistical measurements on the collected data.
EXAMPLES: None.
ORIGINS: This test is based upon ideas from the AFRL and the rtpresto suites.
Nested Class Summary | |
static class |
Jitter.TestProps
|
Field Summary | |
static int |
counter
iteration counter |
MemoryType |
mt
Memory type to use |
Jitter.TestProps |
testProps
Local data for test: generated or otherwise calculated. |
static long[] |
timeArray
array for collecting timestamps during test |
ThreadType |
tt
Thread type to use. |
Constructor Summary | |
Jitter()
constructor for test class Instantiates testProperties. |
|
Jitter(Jitter.TestProps props)
|
Method Summary | |
static void |
main(java.lang.String[] args)
|
void |
run()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public Jitter.TestProps testProps
public ThreadType tt
public MemoryType mt
public static long[] timeArray
public static int counter
Constructor Detail |
public Jitter() throws java.lang.Exception
java.lang.Throwable
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.Exception
public Jitter(Jitter.TestProps props) throws java.lang.Exception
Method Detail |
public static void main(java.lang.String[] args)
args
- the command line argumentspublic void run()
run
in interface java.lang.Runnable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |