Lua
C++
Edit

MaxThreads

This function returns the maximum number of simultaneous threads the CPU can execute at once. More threads than this can be created and run, but will not yield any performance gains.

Syntax

Returns

Returns the maximum number of threads that can run at once.

Example

print(MaxThreads() .. " threads are supported on this machine.")
Copyright © 2006-2025 Leadwerks Software.
All rights reserved.
Leadwerks 4 Documentation