Cprint.c (Horspool, p.253)



 e.g. 

cb file1 | lpr, ..., cb filen | lpr
	cb --"w"---->       |-----4k-----|----"r "-------> lpr

Process Tree parent child

I/O Interaction

parent & child |-----4k-----| parent & child

Open fd Table

N.B.
- open the pipe in the parent
- let the child do the write, the parent do the read

Process Hierarchy -- lpr child parent process cb child
I/O Relation -- file1 ... cb child stdout (pipe) stdin
lpr child


Click here to view the file description table for the cprint program ... (beware it's slow!)




Table of Contents