We just started programming threads in class, and I am trying to call a function prthread(int argc) from my thread. Here is the code I have:
Basically, I don't know how to incorporate variables into functions when I call them in threads. What would the correct syntax be? Thanks.Code:if (pthread_create(&theThread, NULL,(void *)prThread(argc), NULL)!= 0) { perror("pthread_create"); exit(1); }