The AnonPipe and NamedPipe demos demonstrate the use of processes and pipes. In both versions, a parent process creates a child process and communicates with it through a pipe. As their names suggest, AnonPipe uses an anonymous pipe, and NamedPipe uses a named pipe.
In each demo, a command on the parent’s menu lets you launch the child process. Once both are running, you can select shapes, colors, and sizes from the parent program’s menu. The parent sends the command information through a pipe, and the client draws the requested shape. In the NamedPipe demo, you can launch several children, and the parent creates multiple instances of its pipe.