How to kill the pthread in certain condition

32 Views Asked by At

When i create three p_thread-> pt1, pt2, pt3, if pt2 achieve some condition such as global variable = 100 than I need to kill pt3 thread, Is it use pthread_exit() and pthread_join() or pthread_cancel() and pthread_testcancel()?

0

There are 0 best solutions below