suramadu.tests.latency
Class ContextSwitch

java.lang.Object
  extended bysuramadu.tests.latency.ContextSwitch

public class ContextSwitch
extends java.lang.Object

Author:
dan Measure the context switch latency between threads INPUTS:
Property Default Value Description
"iterations" "100"
OUTPUTS: The output contains the maximum, minimum, median, mean, standard deviation and mode statistical measurements on the collected data.

ORIGINS: This test is based upon ideas from the AFRL and the rtpresto suites.

Notes: Uses the Suramadu time native methods to perform timestamping in lieu of RTSJ Time classes


Nested Class Summary
static class ContextSwitch.TestProps
           
 
Constructor Summary
ContextSwitch()
          constructor for test class Instantiates testProperties.
ContextSwitch(ContextSwitch.TestProps props)
           
 
Method Summary
static void exit(int code)
           
static void main(java.lang.String[] args)
           
 void run()
          Start the test
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextSwitch

public ContextSwitch()
              throws java.lang.Exception
constructor for test class Instantiates testProperties.

Throws:
java.lang.Throwable
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.Exception

ContextSwitch

public ContextSwitch(ContextSwitch.TestProps props)
              throws java.lang.Exception
Method Detail

run

public void run()
Start the test


exit

public static void exit(int code)

main

public static void main(java.lang.String[] args)
Parameters:
args - the command line arguments