Friday, 22 February 2013

12. Write a program to create two pipes.

/*
 *  pipes.c
 * 
 *  A set of processes randomly messaging each the other, with pipes.
 *
*/

/* ... */
#include
/* for read() and write() */
#include
#include
/* for strlen and others */
#include
/* for pipe() */
#include
/* for [s]random() */
#include
/* for time() [seeding srandom()] */
#include

No comments:

Post a Comment