Killing threads

Gary E. Miller gem at rellim.com
Tue Sep 27 19:10:15 UTC 2016


Yo Daniel!

On Tue, 27 Sep 2016 15:03:34 -0400
Daniel Franke <dfoxfranke at gmail.com> wrote:

> Hal's question was about *killing* threads. Even if a thread only 3
> ever makes thread-safe calls, it's still unsafe to kill, because
> doing so can leave its mutexes locked and the data they control in an
> inconsistent state.

There is more than one way to 'kill' a thread.  The nice way is to 
'kill -HUP', which politely tells the thread to commit seppuku in the
cleanest way the thread knows how.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem at rellim.com  Tel:+1 541 382 8588
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.ntpsec.org/pipermail/devel/attachments/20160927/6ab5aec9/attachment.bin>


More information about the devel mailing list