Functions

• omp_get_num_threads() - get the number of threads used in a parallel region

Example


#include <omp.h>
# pragma omp parallel
{
}


Output

Note that the thread rank is not in order: