pub fn thread_count(roots: &SysRoots, pid: u32) -> Option<u32>
Number of threads of pid, or None if it is gone or unreadable.
pid
None