Returns the number of threads that are currently in the team executing the parallel region from which it is called.
INTEGER FUNCTION OMP_GET_NUM_THREADS()
#include <omp.h> int omp_get_num_threads(void)
If this call is made from a serial portion of the program, or a nested parallel region that is serialized, it will return 1.
The default number of threads is implementation dependent.