Ajout Résolution Anale 1

This commit is contained in:
2025-08-08 08:17:23 +00:00
parent 1c993ece2d
commit 1bb411b001
17 changed files with 212 additions and 0 deletions

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;
}