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)

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 2024-09-25 21:42 +0000
Organization A noiseless patient Spider
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>

Show all headers | 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