first commit

This commit is contained in:
Ronan Fourneuve
2025-08-08 09:54:34 +02:00
commit 1c993ece2d
8 changed files with 196 additions and 0 deletions

27
ANALE-1/SUJET/launcher.c Normal file
View 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;
}