Ajout Exo1

This commit is contained in:
Ronan Fourneuve
2025-08-08 10:56:50 +02:00
parent 1bb411b001
commit 7e12cccab5
32 changed files with 192 additions and 0 deletions

26
ANALE-1/EXO2/SUJET/p1.c Normal file
View File

@@ -0,0 +1,26 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/shm.h>
#include "dijkstra.h"
#include "commun.h"
void t1()
{
puts("t1");
sleep(10);
puts("end t1");
}
void t2()
{
puts("t2");
sleep(2);
puts("end t2");
}
int main () {
t1();
t2();
return 0;
}