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

22
ANALE-1/RESOLUTION/p3.c Normal file
View File

@@ -0,0 +1,22 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/shm.h>
#include "dijkstra.h"
#include "commun.h"
void t4()
{
puts("t4");
sleep(5);
puts("end t4");
}
int main () {
int sem_t2 = sem_create (CLE_SEM_T2,0);
int sem_t3 = sem_create (CLE_SEM_T3,0);
P(sem_t2);
P(sem_t3);
t4();
return 0;
}