• Re: How to stop a specific thread (Posting On Python-List Prohibited)

    From Lawrence D'Oliveiro@ldo@nz.invalid to comp.lang.python on Wed Sep 25 21:42:10 2024
    From Newsgroup: comp.lang.python

    On 25 Sep 2024 17:39:37 GMT, Stefan Ram wrote:

    Killing or stopping a thread can cause data corruption and
    unpredictable behavior.

    Interesting that even the underlying POSIX thread-terminating call <https://manpages.debian.org/3/pthread_cancel.3.en.html> allows for the concept of “cancellation points”, so that threads can elect to only be terminated at well-defined points in their execution.
    --- Synchronet 3.20a-Linux NewsLink 1.114