FileDocCategorySizeDatePackage
NewIOFibonacciDriver.javaAPI DocExample450Tue Feb 14 10:44:30 GMT 2006None

NewIOFibonacciDriver

public class NewIOFibonacciDriver extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

    Pipe pipe = Pipe.open();
    WritableByteChannel out = pipe.sink();
    ReadableByteChannel in = pipe.source();

    FibonacciProducer producer = new FibonacciProducer(out, 200);
    FibonacciConsumer consumer = new FibonacciConsumer(in);
    producer.start();
    consumer.start();