CS476/576

Assignment #3

Due Midnight, Wednesday   Nov 2 , 2005


Write a C/UNIX program with the following descriptions:

NAME

ccpp  - A  set of Cooperative Concurrent Pipe-connected Processes.

SYNOPSIS

ccpp n

DESCRIPTION

The program creates n processes and each process is connected to its neighbor process with two pipes, one for read and the write. Note that the first and last processes have only one neighbor, i.e. the set of processes forms a chain.  Here is a description of the processes functions:

When a process K receives a line from one of its neighbors it perform the following functions:

When a user types CTRL-D all processes are terminated.

See my own solution under:

/home/cs476/public_html/fall05/assignments/a3/wahab