#include #include #include void * thread1() { while(1){ printf("Hola\n"); } } void * thread2() { while(1){ printf("mundo\n"); } } int main() { int status; pthread_t tid1,tid2; pthread_create(&tid1,NULL,thread1,NULL); pthread_create(&tid2,NULL,thread2,NULL); pthread_join(tid1,NULL); pthread_join(tid2,NULL); return 0; }