The Question : 408 people think this question is useful I picked up the following demo off the web from https://computing.llnl.gov/tutorials/pthreads/ But when I compile it on my machine (running Ubuntu Linux 9.04) I get the following error: This doesn’t make any sense to me, because the header includes pthread.h, which should have the pthread_create
问题内容: This question already has an answer here: Pass integer value through pthread_create 4 answers Passing an int as the 4th argument in pthread_create in C 2 answers Linux Pthread argument 4 answers Arguments were passed wrong in pthread 2 answers How can I pass the index of a for loop as the argument for