#include <iostream.h><BR>#include <pthread.h><BR>#include <unistd.h><BR>#include <stdlib.h><P>struct a_struct{<BR>int id;<BR>int sleep_time;<BR>};<P>void ...
I have an object that maintains a number of internal pthreads. In the object destructor, I want to kill any running internal threads. The thread executing the destructor will not be one of these ...