From: Leandro Lucarella Date: Sat, 11 Oct 2003 04:44:11 +0000 (+0000) Subject: Se imprime en numero de thread(?). X-Git-Tag: svn_import~450 X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/commitdiff_plain/e6b76514b2641a85f45daee4065719798db1e10f Se imprime en numero de thread(?). --- 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;