#include //pid_t #include //fork() #include //waitpid #include //printf... #include //exit() //gp-3.c void main(){ int pid1,pid2,pid3; if (pid3=fork() == 0) execlp("/home/mumolo/proc","proc","T3",NULL); if (pid1=fork() == 0) execlp("/home/mumolo/proc","proc","T1",NULL); waitpid(pid1, NULL, 0); if( pid2=fork() == 0) execlp("/home/mumolo/proc","proc","T2",NULL); waitpid(pid2, NULL, 0); waitpid(pid3, NULL, 0); }