Subj : Re: pthread function behavior in C++ program To : comp.programming.threads From : Marcin 'Qrczak' Kowalczyk Date : Mon Jun 13 2005 01:56 am "Peter Dimov" writes: > Hallucinations aside, is his position - that a canceled thread must > remain canceled - reasonable (as long as it's done the right way)? IMHO it's not. I don't see any reason to insist that it must be irreversible. My language Kogut supports exceptions (which work as in most languages) and signals (sent to a thread from another thread; causes interruption of what the thread is currently doing and execution of a handler which may continue or throw an exception; may be temporarily blocked). An unhandled signal is by default rethrown as an exception. Thread cancellation is just a signal. A thread can delay or ignore a request for termination, and I don't see anything wrong with it. You can't protect against abusive threads anyway. -- __("< Marcin Kowalczyk \__/ qrczak@knm.org.pl ^^ http://qrnik.knm.org.pl/~qrczak/ .