Class SharedDataProcess
java.lang.Object
|
+--Process
|
+--SharedDataProcess
- All Implemented Interfaces:
- java.lang.Runnable
- Direct Known Subclasses:
- Reader, Writer
- public abstract class SharedDataProcess
- extends Process
A SharedDataProcess is a process that accesses a shared data object.
This class is an abstract class. Concrete subclasses must implement
the step() method.
Field Summary |
protected int |
count
count is the number of times that this shared data process will
access its shared data object. |
protected SharedData |
sharedData
sharedData is the shared data object accessed by this shared data
process. |
Constructor Summary |
SharedDataProcess(java.lang.String nm,
double t,
SharedData d)
new SharedDataProcess(nm, t, d) returns a new shared data process
and starts executing its run method in a new thread. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
sharedData
protected SharedData sharedData
- sharedData is the shared data object accessed by this shared data
process.
count
protected int count
- count is the number of times that this shared data process will
access its shared data object.
SharedDataProcess
public SharedDataProcess(java.lang.String nm,
double t,
SharedData d)
- new SharedDataProcess(nm, t, d) returns a new shared data process
and starts executing its run method in a new thread. The name of
the new process is formed by concatenating its class name with nm.
Its shared data object is d. Its average twiddle time is t.