4 ms·
On my Linux desktop the default cap seems[1] to be ~32k. See eg https://www.baeldung.com/linux/max-threads-per-process https://www.baeldung.com/linux/max-threa
by fulafel 2y ago
On my Linux desktop the default cap seems[1] to be ~32k.
See eg https://www.baeldung.com/linux/max-threads-per-process https://www.baeldung.com/linux/max-threads-per-process for some runtime sysctl knobs if you want to go higher than the default limits. (Though the section 6 there seems out of date and written with the 32-bit OS in mind)
[1] as reported by the Python snippet from https://stackoverflow.com/a/64406494 https://stackoverflow.com/a/64406494