/** * The main body of this process. */ public void run() { while (true) { Out.write(In.read() + 1); //Console.WriteLine("After adding value in Successor"); } }
/** * The main body of this process. */ public void run() { //Console.WriteLine("Inside identity int"); while (true) { //Out.write(In.read()); var a = In.read(); //Console.WriteLine("Prefix identityInt is " + a.ToString()); Out.write(a); } }
public void run() { int i = 1000; while (i > 0) { i = (int)inChannel.read(); Console.WriteLine("\nThe input was " + i); } Console.WriteLine("Finished!"); }
/** * The main body of this process. */ public void run() { ProcessWriteInt[] parWrite = { new ProcessWriteInt(Out0), new ProcessWriteInt(Out1) }; CSPParallel par = new CSPParallel(parWrite); while (true) { int value = In.read(); parWrite[0].value = value; parWrite[1].value = value; par.run(); //Console.WriteLine("Read values in Delta. ProcessWrite finished"); } }