X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/453a6491a164f1d9a7ff594577c3bfead5b50da0..b804b4bd1f222976f6a1fb3156fede8e26e32d3d:/tests/pthreads.c diff --git a/tests/pthreads.c b/tests/pthreads.c index 6d04b97..e76eba6 100644 --- a/tests/pthreads.c +++ b/tests/pthreads.c @@ -30,10 +30,13 @@ int main(int argc, char *argv[]) srand(time(NULL)); pthread_create(&s1, NULL, ejecuta_animal, "GNU"); pthread_detach(s1); + printf("Se lanzó thread %lu.\n", (unsigned long)s1); pthread_create(&s2, NULL, ejecuta_animal, "Vaca"); pthread_detach(s2); + printf("Se lanzó thread %lu.\n", (unsigned long)s2); pthread_create(&s3, NULL, ejecuta_animal, "Conejo"); pthread_detach(s3); + printf("Se lanzó thread %lu.\n", (unsigned long)s3); pthread_exit(NULL); return 0;