Path: ...!fu-berlin.de!uni-berlin.de!not-for-mail From: Barry Scott Newsgroups: comp.lang.python Subject: Re: python C-api and thread Date: Tue, 6 Aug 2024 21:12:46 +0100 Lines: 17 Message-ID: References: <4WdHSF10ZRznWJR@mail.python.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: 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: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <4WdHSF10ZRznWJR@mail.python.org> Bytes: 3804 > On 6 Aug 2024, at 07:11, aotto1968 via Python-list = 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