45 ms·
Beware of anyone who says phrases like "kill a thread". The thread must have some cooperation in such a thing; the right design is for it to politely be asked t
by asveikau 11y ago
Beware of anyone who says phrases like "kill a thread". The thread must have some cooperation in such a thing; the right design is for it to politely be asked to stop. Otherwise if it touches any shared objects, acquires any locks, etc., "kill the thread" becomes more like "make my address space into a death trap".