#include #include #define NUM_THREADS 5 #define K 4 /* Task: - compile and run the code */ void *PrintHello(void *threadid) { long tid; tid = (long)threadid; int i; for (i=1; i<=K; i++) { printf("Hello World It's me, thread #%ld, iteration %d.\n", tid, i); sleep(1); } pthread_exit(NULL); } int main (int argc, char *argv[]) { pthread_t threads[NUM_THREADS]; int rc; long t; for(t=0; t