pub const THREADS_MAX: u32 = 0x3fff_ffff;
The maximum value that can be written to /proc/sys/kernel/threads-max on Linux 4.1 or later
/proc/sys/kernel/threads-max