Re: python C-api and thread

Liste des GroupesRevenir à cl python 
Sujet : Re: python C-api and thread
De : barry (at) *nospam* barrys-emacs.org (Barry Scott)
Groupes : comp.lang.python
Date : 06. Aug 2024, 22:12:46
Autres entêtes
Message-ID : <mailman.27.1722975171.2890.python-list@python.org>
References : 1 2 3 4 5
User-Agent : Apple Mail (2.3776.700.51)


On 6 Aug 2024, at 07:11, aotto1968 via Python-list <python-list@python.org> wrote:
 
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


Date Sujet#  Auteur
5 Aug 24 * python C-api and thread8aotto1968
6 Aug 24 +* Re: python C-api and thread (Posting On Python-List Prohibited)2Lawrence D'Oliveiro
6 Aug 24 i`- Re: python C-api and thread (Posting On Python-List Prohibited)1aotto1968
6 Aug 24 +* Re: python C-api and thread4Grant Edwards
6 Aug 24 i`* Re: python C-api and thread3aotto1968
6 Aug 24 i +- Re: python C-api and thread1Barry Scott
7 Aug 24 i `- Re: python C-api and thread (Posting On Python-List Prohibited)1Lawrence D'Oliveiro
6 Aug 24 `- Re: python C-api and thread1Chris Angelico

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal