Thread Processes 2
class Succ extends Thread {
private ChannelOutput out;
Integer x=(Integer)in.read();
int res = x.intValue() + 1;
out.write(new Integer(res));
class Nos extends Thread {
private ChannelOutput out;
Channel a = new Channel();
Channel b = new Channel();
Channel c = new Channel();
Prefix p = new Prefix(a, b,
Delta d = new Delta(b, c, out);
p.join(); d.join(); s.join();