Deutsch   English   Français   Italiano  
<mailman.27.1722975171.2890.python-list@python.org>

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

Path: ...!fu-berlin.de!uni-berlin.de!not-for-mail
From: Barry Scott <barry@barrys-emacs.org>
Newsgroups: comp.lang.python
Subject: Re: python C-api and thread
Date: Tue, 6 Aug 2024 21:12:46 +0100
Lines: 17
Message-ID: <mailman.27.1722975171.2890.python-list@python.org>
References: <v8rfki$13c5s$1@dont-email.me> <4WdHSF10ZRznWJR@mail.python.org>
 <mailman.21.1722911646.2890.python-list@python.org>
 <v8seqr$1daq2$2@dont-email.me>
 <F7D00EF5-BCAA-4645-82ED-64949BE2168C@barrys-emacs.org>
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\))
Content-Type: text/plain;
	charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de pkfTivuAonCQvXffsbCZ2wYHD8GPP5yxAdAUNS9xjtjQ==
Cancel-Lock: sha1:JNo3186gUPa5mmGY0sj3DkE8hDs= sha256:Innia6y0qVhvFhbbN+OLtUGN8mLlxsp6vIarAL0JG0M=
Return-Path: <barry@barrys-emacs.org>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
 dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.023
X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'thread': 0.05;
 'subject:python': 0.06; 'aug': 0.07; 'cc:addr:python-list': 0.09;
 'from:addr:barry': 0.09; 'received:gandi.net': 0.09;
 'received:mail.gandi.net': 0.09; 'threads': 0.09; 'cc:no real
 name:2**0': 0.14; 'assuming': 0.16; 'barry': 0.16; 'from:addr
 :barrys-emacs.org': 0.16; 'from:name:barry scott': 0.16; 'message-
 id:@barrys-emacs.org': 0.16; 'subject:thread': 0.16;
 'wrote:<span': 0.16; 'wrote:': 0.16; 'cc:addr:python.org': 0.20;
 'cc:2**0': 0.25; 'perform': 0.26; 'done': 0.28; 'email
 addr:python.org>': 0.28; 'python-list': 0.32; 'but': 0.32;
 '0);': 0.33; 'rgb(0,': 0.33; 'mean': 0.34; 'header:In-Reply-To:1':
 0.34; 'processes': 0.36; 'using': 0.37; 'means': 0.38; 'enough':
 0.39; 'use': 0.39; 'font-family:': 0.60; 'inline': 0.61;
 'display:': 0.62; 'none;': 0.62; 'font-weight:': 0.62; '0px;':
 0.63; 'between': 0.63; 'text-indent:': 0.64; 'normal;': 0.66;
 'skip:! 10': 0.67; 'float:': 0.74; 'significant': 0.78; 'skip:!
 20': 0.81; 'email name:<python-list': 0.84; '400;': 0.89;
 '13px;': 0.91
In-Reply-To: <v8seqr$1daq2$2@dont-email.me>
X-Mailer: Apple Mail (2.3776.700.51)
X-GND-Sasl: barry@barrys-emacs.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.39
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
 <python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
 <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
 <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <F7D00EF5-BCAA-4645-82ED-64949BE2168C@barrys-emacs.org>
X-Mailman-Original-References: <v8rfki$13c5s$1@dont-email.me>
 <4WdHSF10ZRznWJR@mail.python.org>
 <mailman.21.1722911646.2890.python-list@python.org>
 <v8seqr$1daq2$2@dont-email.me>
Bytes: 3804



> On 6 Aug 2024, at 07:11, aotto1968 via Python-list =
<python-list@python.org> wrote:
>=20
> I know but I use a thread like a process because the "conversation" =
between the threads is done by my
> software. a Thread is usually faster to startup (thread-pool) this =
mean for high-load this is
> significant faster even than fork.

using processes means you are more robust and can survive a process =
crash.
using async, assuming you do enough I/O, will out perform threads.

Barry