Sujet : Re: Does Python Need Virtual Threads? (Posting On Python-List Prohibited)
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.pythonDate : 15. Jun 2025, 21:59:43
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <102nc7v$14c9g$1@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : Pan/0.162 (Pokrosvk)
On Sun, 15 Jun 2025 13:24:56 -0700, Paul Rubin wrote:
Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>
Remember, Python’s threads are OS threads. If you’re thinking
“expensive”, you must be assuming “Microsoft Windows”.
Let's see how CPython holds up with a million OS threads running.
Linux can already run hundreds of thousands of processes/threads (there’s
not a lot of difference between the two on Linux). Remember why pid_t is
32 bits, not 16 bits.
See the definition of /proc/sys/kernel/threads-max
<
https://manpages.debian.org/proc_sys_kernel(5)>.