Machine Problem 6, due May 5

Part of the homework for 22C:112, Spring 2008
by Douglas W. Jones
THE UNIVERSITY OF IOWA Department of Computer Science

Background: The file http://homepage.cs.uiowa.edu/~dwjones/opsys/hw/mp6.txt contains a program that copys the standard input file to standard output, doint it the hard way by forking into two processes and passing the data through a pipe from one process to the other. Along the way, each copy is slightly mutated to prove that the data actually went through the pipe.

An alternative approach to interprocess communicatin would involve using a bounded buffer in a shared memory region. You can use mmap() with the MAP_ANON and MAP_SHARED options to include an appropriate shared memory region in the process.

The Assignment: