Function procfs::sys::kernel::set_threads_max[][src]

pub fn set_threads_max(new_limit: u32) -> ProcResult<()>
Expand description

Sets the system-wide limit on the number of threads (tasks) that can be created on the system.

Since Linux 4.1, this value is bounded, and must be in the range THREADS_MIN..=THREADS_MAX. This function will return an error if that is not the case.