pub fn threads() -> Result<usize>
This process’s threads. Linux and macOS: one read, no allocation. Windows: a snapshot of every process on the machine, 5 to 60 ms on a busy host: call it rarely there, never per request.
As memory.
memory