#include "process.h" #include "headers.h" int main(void){ int i; pthread_t threads[2]; char *msgs[] = {"Hello", "World"}; /* error checking left out for legibility */ for(i = 0; i < 2 ; i++) pthread_create(&threads[i], NULL, pr_msg_fn, (void *)msgs[i]); for(i = 0; i < 2 ; i++) pthread_join(threads[i],NULL); fprintf(stderr, "\n"); return 0; }