changed node.data to pid, implementation pthread_cond_broadcast()