Multithreaded Programming Guide

pthread_equal Return Values

pthread_equal() returns a nonzero value when tid1 and tid2 are equal, otherwise, 0 is returned. When either tid1 or tid2 is an invalid thread identification number, the result is unpredictable.