From e6b76514b2641a85f45daee4065719798db1e10f Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Sat, 11 Oct 2003 04:44:11 +0000 Subject: [PATCH] Se imprime en numero de thread(?). --- tests/pthreads.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.43.0