#include #include //#include //#include #include #include #include #include //#include #define NUM_THREADS 5 void *PrintHello(void *threadid) { int n=0; printf("\n hello world!\n"); //printf("\n%d: hello world!\n", (int *)threadid); pthread_exit(&n); } int main (int argc, char * argv[]) { pthread_t threads[NUM_THREADS]; int rc, t; int idx[NUM_THREADS]; for (t=0; t