Deutsch   English   Français   Italiano  
<vd203h$3r2r4$9@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.roellig-ltd.de!open-news-network.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Lawrence D'Oliveiro <ldo@nz.invalid>
Newsgroups: comp.lang.python
Subject: Re: How to stop a specific thread (Posting On Python-List Prohibited)
Date: Wed, 25 Sep 2024 21:42:10 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <vd203h$3r2r4$9@dont-email.me>
References: <mailman.7.1727285081.2990.python-list@python.org>
	<threads-20240925183826@ram.dialup.fu-berlin.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 25 Sep 2024 23:42:10 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d676190ddbdcb7173a64dc657b0df900";
	logging-data="4033380"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18o7VrJ1Fo0MgiDzXYcyn+i"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:0yZkvVcuQ1APt/78v3aQS93qPlw=
Bytes: 1499

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.