cpu.cores
The cpu.cores property gets the number of physical CPU cores.
Example
--! luart-extensions import cpu print("CPU cores : "..cpu.cores)