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.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
😔 What went wrong?