Lua:getCPUCount
Jump to navigation
Jump to search
<> Lua API Reference
function getCPUCount() : integer
Returns the number of CPUs.
This function has no parameters.
integer — The number of CPUs.
1 local cpuCount = getCPUCount()
2
3 print("CPU count: " .. cpuCount)
Main Pages
Core Lua documentation entry points
◆ Lua
◆ Script Engine
Thread Related Lua Functions
CPU information, process threads, main-thread execution, and queued callbacks
|
◆ synchronize |