actually, if they're thread procedures, they should call
Originally Posted by bithub
instead of returning. granted, they should still have a return statement for standards-compliance, but in order to behave as expected, you really need to have the pthread_exit call.
edit: when creating your threads, you should not put the '&' symbol in front of the function names.
is the correct usage. putting the '&' in front of the function names will likely result in compiler errors.
pthread_create(&t1, NULL, pong, NULL);