• Re: python C-api and thread

    From Barry Scott@21:1/5 to All on Tue Aug 6 21:12:46 2024
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lawrence D'Oliveiro@21:1/5 to All on Tue Aug 6 23:41:45 2024
    On Tue, 6 Aug 2024 08:11:39 +0200, aotto1968 wrote:

    ... a Thread is usually faster to startup (thread-pool) ...

    Process pools exist, too. As I recall, Apache and Android use them.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)