Sujet : Re: python C-api and thread
De : barry (at) *nospam* barrys-emacs.org (Barry Scott)
Groupes : comp.lang.pythonDate : 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