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?
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)