I have no idea why this doesn\'t work
#include #include using namespace std; void *print_message(){ cout << \"Thre
From the pthread function prototype:
int pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)(void*), void *arg);
The function passed to pthread_create must have a prototype of
void* name(void *arg)