Ajout correction exo1
This commit is contained in:
@@ -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
BIN
ANALE-1/EXO1/RESOLUTION/conso
Executable file
Binary file not shown.
BIN
ANALE-1/EXO1/RESOLUTION/conso.o
Normal file
BIN
ANALE-1/EXO1/RESOLUTION/conso.o
Normal file
Binary file not shown.
BIN
ANALE-1/EXO1/RESOLUTION/dijkstra.o
Normal file
BIN
ANALE-1/EXO1/RESOLUTION/dijkstra.o
Normal file
Binary file not shown.
BIN
ANALE-1/EXO1/RESOLUTION/launcher
Executable file
BIN
ANALE-1/EXO1/RESOLUTION/launcher
Executable file
Binary file not shown.
BIN
ANALE-1/EXO1/RESOLUTION/launcher.o
Normal file
BIN
ANALE-1/EXO1/RESOLUTION/launcher.o
Normal file
Binary file not shown.
BIN
ANALE-1/EXO1/RESOLUTION/prod
Executable file
BIN
ANALE-1/EXO1/RESOLUTION/prod
Executable file
Binary file not shown.
BIN
ANALE-1/EXO1/RESOLUTION/prod.o
Normal file
BIN
ANALE-1/EXO1/RESOLUTION/prod.o
Normal file
Binary file not shown.
@@ -19,5 +19,6 @@ int main () {
|
|||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
shmdt(shmem);
|
shmdt(shmem);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user