Skip to main content
Log in

Mojo function

num_logical_cores

num_logical_cores() -> Int

Returns the number of hardware threads, including hyperthreads across all CPU sockets.

Returns:

Int: The number of threads on the system.