Can a p开发者_JAVA百科thread only take one argument?
So If I wanted to send in a number of arguments, would I send in a struct and open it inside the thread function?
Yes, see the documentation on pthread_create. You can always bundle the needed information in a struct object as you suggest.
精彩评论