This commit is contained in:
Ronan Fourneuve
2025-08-09 15:41:19 +02:00
9 changed files with 4 additions and 1 deletions

View File

@@ -2,7 +2,9 @@
#define COMMUN_H #define COMMUN_H
#define MEM 3 #define MEM 3
#define SEM 5 #define SEM 3 // changé 5 en 3
// en gros comme on a que 3 cases mémoire, si on a 5 jetons de prod
// on peut écraser des valeurs qui n'ont pas été lues
#define CLE_SEM_PROD 100 #define CLE_SEM_PROD 100
#define CLE_SEM_CONSO 200 #define CLE_SEM_CONSO 200

BIN
ANALE-1/EXO1/RESOLUTION/conso Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
ANALE-1/EXO1/RESOLUTION/launcher Executable file

Binary file not shown.

Binary file not shown.

BIN
ANALE-1/EXO1/RESOLUTION/prod Executable file

Binary file not shown.

Binary file not shown.

View File

@@ -19,5 +19,6 @@ int main () {
} }
printf("\n"); printf("\n");
shmdt(shmem); shmdt(shmem);
return 0; return 0;
} }