#include #include #include #include #include #include #define MAX_PROC 10 #define LOOP_COUNT 5 #pragma lint -1 #pragma optimize 78 #pragma debug 0 int lock; void child_process (void) { int i; pid_t pid; /* wait for everyone else */ pid = getpid(); swait(lock); for (i=0; i