examen
 TD 6 : Processus, fork, signaux 2 Tube anonyme TD 6 : Processus, fork, signaux 2 Tube anonyme
Dans le problème du producteur et du consommateur deux processus partagent ... attente. Le test du sémaphore, le changement de sa valeur et la mise en at-.


 TD 6 : Processus, fork, signaux - LIP6 TD 6 : Processus, fork, signaux - LIP6
if ((pid = fork()) == -1). 13 : exit(EXIT_FAILURE);. 14 : 15 : if (pid != 0). 16 : {. 17 : n--;. 18 : pid1 = pid;. 19 : pid2 = getpid();.


 TD 6 : Processus, fork, signaux - LIP6 TD 6 : Processus, fork, signaux - LIP6
if ((pid = fork()) == -1). 13 : exit(EXIT_FAILURE);. 14 : 15 : if (pid != 0). 16 : {. 17 : n--;. 18 : pid1 = pid;. 19 : pid2 = getpid();.