]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - tests/pthreads.c
Se agregan mas propiedades svn:ignore.
[z.facultad/75.42/plaqui.git] / tests / pthreads.c
index 6d04b97b610830f5fd0a71f0988e2d33f99b9df8..e76eba638017cf6566d14664d57077afc0f28543 100644 (file)
@@ -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;