tmain
if ((r = pthread_create(&tid, NULL, tmain, NULL)))
CHECKr(pthread_create(&t1_tid, NULL, tmain, NULL));
if ((r = pthread_create(&t, NULL, tmain, NULL)))