Sets the maximum number of OpenMP threads
The input is clamped between 1 and n, where n is the startup value of omp_get_max_threads (which is also the default value)
threads (int) – Number of threads