/* Compile with gcc Lab06_D1.c -o Lab06 -lpthread */ #include #include #define NUM_THREADS 5 void* printHello(void *threadId) { printf("\n%d:Hello World!\n",threadId); pthread_exit(NULL); } int main() { pthread_t threads[NUM_THREADS]; int rc,t; for(t=0;t