Re: Does Python Need Virtual Threads? (Posting On Python-List Prohibited)
Lawrence D'Oliveiro <[email protected]> Sun, 15 Jun 2025 20:59:43 -0000 (UTC)
| Newsgroups | comp.lang.python |
|---|---|
| Organization | A noiseless patient Spider |
| Message-ID | <[email protected]> |
On Sun, 15 Jun 2025 13:24:56 -0700, Paul Rubin wrote: > Lawrence D'Oliveiro <[email protected]> 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)>.