Return the number of threads to use in parallel operations.
The number of threads is determined at startup by inspecting the
OMP_THREAD_LIMITenvironment variables. If neither is present, it will default to the number of hardware threads on the system. It can be modified at runtime by calling
Modify the size of this pool.
The analogous function for the I/O thread pool.