Standard LibraryFunctionsavailable_threadsOn this pageavailable_threads available_threads() -> integer Returns the number of hardware threads available on this system. If the value cannot be determined, the function returns 0. See also: set_max_threads