I have a question about the pthread_create function.
A normal use of that function would be something like this.
Code:
int itr =pthread_create(&my_thread,NULL, void *(*start_routine)(void*), void *arg);
Can I use the function diferently? Do I always have to have a pointer to my function that the thread will execute and what does (void*) after (*start_routine) mean?
How could I use the function that takes no arguments, it's just a simple void..Let's say I have two void function's that print out 2 different words, how can I now make 2 threads ,each using one of those two functions?