thread_main
CHECKr(pthread_create(&tid, NULL, thread_main, NULL));
ret = pthread_create(&t, NULL, thread_main, NULL);