sem_t mutex;
-void *philosophe(void *num)
+static void *philosophe(void *num)
{
int i = *(int *)num, nb = 2;
while (nb) {
// attendre la fin des threads
for (i = 0; i < N; i++)
pthread_join(th[i], NULL);
- printf("fin des threads \n");
+ printf("fin des threads\n");
return 0;
}