For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).
num_logical_cores
num_logical_cores() -> Int
Returns the number of hardware threads, including hyperthreads across all CPU sockets.
Returns:
Int: Int: The number of threads on the system.