I try to join thread by pthread_join(thread). but in any case I the join return the value 1 in any case also if the function that the thread work on is empty. According to the man files it have to return 0 in success but it return only 1! how can I find the problem?? thanks..