FUNCTIONS_OPENMP Demonstrate a few of OpenMP's library functions. While NOT in a parallel region: omp_get_max_threads ( ) = 12 omp_get_num_threads ( ) = 1 omp_get_thread_num ( ) = 0 omp_get_num_procs ( ) = 12 omp_get_wtime ( ) = 1.43745e+07 While NOT in a parallel region, after calling omp_set_num_threads ( 5 ): omp_get_max_threads ( ) = 5 omp_get_num_threads ( ) = 1 omp_get_thread_num ( ) = 0 omp_get_num_procs ( ) = 12 omp_get_wtime ( ) = 1.43745e+07 Enter a parallel region. after calling omp_set_num_threads ( 3 ): Enter a parallel region. omp_get_thread_num ( ) = 0 after calling omp_set_num_threads ( 3 ): While in a parallel region, printing from a single thread: omp_get_max_threads ( ) = 3 omp_get_thread_num ( ) = 2 omp_get_num_threads ( ) = 3 omp_get_thread_num ( ) = 0 Enter a parallel region. after calling omp_set_num_threads ( 3 ): omp_get_num_procs ( ) = 12 omp_get_thread_num ( ) = 1 omp_get_wtime ( ) = 1.43745e+07 omp_get_wtime estimates duration of sleep(5) as 5.00016 seconds. FUNCTIONS_OPENMP Normal end of execution.