thread_main
int err = pthread_create(&tid[i], NULL, &thread_main, &thread_args);
pthread_create(&self->threads[i], NULL, thread_main,