first commit
This commit is contained in:
27
ANALE-1/SUJET/launcher.c
Normal file
27
ANALE-1/SUJET/launcher.c
Normal file
@@ -0,0 +1,27 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/shm.h>
|
||||
#include <sys/wait.h>
|
||||
#include <string.h>
|
||||
#include "dijkstra.h"
|
||||
#include "commun.h"
|
||||
|
||||
int main () {
|
||||
if (fork() == 0)
|
||||
{
|
||||
execlp("./p1","./p2",NULL);
|
||||
}
|
||||
if (fork() == 0)
|
||||
{
|
||||
execlp("./p2","./p2",NULL);
|
||||
}
|
||||
if (fork() == 0)
|
||||
{
|
||||
execlp("./p3","./p3",NULL);
|
||||
}
|
||||
wait(NULL);
|
||||
wait(NULL);
|
||||
wait(NULL);
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user