All Packages Class Hierarchy This Package Previous Next Index
The run method should be made synchronized if executing that method on the same instance of the class in more than one Parallel simultaneously would cause the Object to be left in an inconsistent state.
NOTE: For those familiar with the OCCAM programming language the CSProcess interface is equivalent to the PROC declaration. The constructor of any classes implementing the interface is the PROC definition and the run method the body.
import jcsp.lang.*; public ProcessExample implements CSProcess { public ProcessExample(Object value, ChannelOutput out) { this.value = value; this.out = out; } public void run() { while (true) { out.write(value); } } }
public abstract void run()
All Packages Class Hierarchy This Package Previous Next Index