Skip to main content

Mojo function

num_physical_cores

num_physical_cores() -> Int

Returns the number of physical cores across all CPU sockets.

Returns:

Int: The number of physical cores on the system.