palaver::process
pub fn count_threads() -> usize
Count the number of threads visible to this process. Counts the lines of ps -eL and equivalent minus one (the header).
ps -eL