static void* fonction(void* args) {
printf("pid du thread fils = %d\n", getpid());
- while(1); // forever
+ while (1); // forever
return NULL;
}
printf("pid de main = %d\n", getpid());
pthread_create(&thread, NULL, &fonction, NULL);
- while(1); // forever
+ while (1); // forever
return 0;
}