|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--SharedDataMain
Class SharedDataMain defines a main method for running a readers and writers simulation.
Field Summary | |
static double |
ACCESS_TIME
ACCESS_TIME is the read and write access time for a SharedData object. |
static double |
LOAD_FACTOR
LOAD_FACTOR is the fraction of time that is spent for accesses. |
static int |
NUM_READERS
NUM_READERS is the number of readers used in the simulation. |
static int |
NUM_WRITERS
NUM_WRITERS is the number of writers used in the simulation. |
static double |
READ_LOAD
READ_LOAD is the fraction of total access time that is spent for Reader accesses. |
static double |
READ_TWIDDLE
READ_TWIDDLE is the average time that readers spend between reads. |
static long |
SIMULATION_TIME
SIMULATION_TIME is the approximate total time for the simulation. |
static double |
WRITE_LOAD
WRITE_LOAD is the fraction of total access time that is spent for Reader accesses. |
static double |
WRITE_TWIDDLE
WRITE_TWIDDLE is the average time that writers spend between writes. |
Method Summary | |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final long SIMULATION_TIME
public static final double LOAD_FACTOR
public static final double ACCESS_TIME
public static final int NUM_READERS
public static final int NUM_WRITERS
public static final double READ_LOAD
public static final double WRITE_LOAD
public static final double READ_TWIDDLE
public static final double WRITE_TWIDDLE
Method Detail |
public static void main(java.lang.String[] args)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |