Producer/Consumer Pipes
inbytes = read(stdin, inbuffer, 1024);
outbytes = process data from inbuffer to outbuffer;
write(stdout, outbuffer, outbytes);
This example illustrates one important use of the producer/consumer bounded buffer in Lab #3.
Pipes support a simple form of parallelism with built-in flow control.
e.g.: sort <grades | grep Dan | mail sprenkle