Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #196754

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

Path csiph.com!news.swapon.de!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> (permalink)
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=
Xref csiph.com comp.lang.python:196754

Show key headers only | View raw


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.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

How to stop a specific thread in Python 2.7? marc nicole <mk1853387@gmail.com> - 2024-09-25 19:24 +0200
  Re: How to stop a specific thread (Posting On Python-List Prohibited) Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-09-25 21:42 +0000

csiph-web