In C, how can i pass more than one argument to a thread?
Normally, I do it in a way like,
pthread_create(&th,NULL,dosomething,(void*)connfd);
void * dosomething(void *connfd)
{
// Doing something
}
In the above example,I am passing connfd value only to the thread 'th'.
Is there any way to pass more than one value so that it can be much useful for me?
One more thing, Can we pass an array as an argument to a thread?