Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

SAI_1-4.c

//gcc 7.4.0

#include  <stdio.h>
#include<omp.h>
int main(void)
{
    int i,j;
    i=omp_get_thread_num();
    printf("%d\n",i);
    #pragma omp parallel
        printf("\nNo: of threads in parallel region: %d",omp_get_thread_num());
    return 0;
}
 run  | edit  | history  | help 0