cpu.threads
The cpu.threads property gets the number hardware threads.
Example
--! luart-extensions import cpu print("CPU hardware threads : "..cpu.threads)