pthread_equal
extern int pthread_equal(pthread_t t1, pthread_t t2);
return (pthread_equal(thr0, thr1));