pub fn threads() -> Result<usize>
This process’s threads. Linux and macOS: one read, no allocation. Windows: a system-wide thread snapshot, whose cost grows with the machine’s thread count.
As memory.
memory