Sujet : Re: How to stop a specific thread (Posting On Python-List Prohibited)
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.pythonDate : 25. Sep 2024, 22:42:10
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vd203h$3r2r4$9@dont-email.me>
References : 1 2
User-Agent : Pan/0.160 (Toresk; )
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.