I need to modify the verion of my code below to create and reap a user defined number of joinable peer threads. Here is what I have thus far:
Code:#include "csapp.h" void *(void *vargp); int main() { pthread_t tid; Pthread_create(&tid, NULL, thread, Null); Pthread_join(tid, NULL); exit(0); } void *thread(void *vargp) { printf("Hello\n"); return NULL; }