omp_get_num_threads
int omp_get_num_threads(int num_threads)
This function returns the number of threads currently in the team executing the parallel region from which it is called.