int omp_get_num_threads(void);
Summary The omp_get_num_threads routine returns the number of threads in the current team.
Binding The binding region for an omp_get_num_threads region is the innermost enclosing parallel region.
Effect The omp_get_num_threads routine returns the number of threads in the team that is executing the parallel region to which the routine region binds. If called from the sequential part of a program, this routine returns 1.