README (1995.05.15)

Question: Write a copy program that uses double buffering and two threads.

The following restrictions apply:

	1) You are allowed at most two threads, a reader and a writer.

	2) Program reads from standard input and writes to standard output.

	3) Input must equal output in size and content.

	4) You can use only two buffers.

Hints & Tips:

	1) Maintain a state in each buffer (clean or dirty).

	2) Each thread expresses an interest in a particular buffer at
		one time.

	3) The buffer of interest will have to be in a given state.

	4) You will need a scheme to block a thread if it's buffer of
		interest is not in the desired state.

	5) Remember the reader runs first.
