#include #include #include #define N 20 void* hello(void* _arg) { int* p = _arg; printf("[%llx] Hello from %d\n", (unsigned long long)pthread_self(), *p); free(p); return NULL; } int main(int argc, char* argv[]) { pthread_t tid[N]; void* retval; for(int i=0; i