This may be a language dependent thing, or something I'm missing something fundamental, but here's the scene in a sort of pseudo code. The method scope ends. In what order does the garbage collector ...
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 ...