Referenceosos.getnumcpusOn this pageos.getnumcpusGets the number of logical CPU cores. os.getnumcpus() Parameters None. Return Value The number of logical CPU cores of the running system. Availability Premake 5.0.0 beta 3 or later.