/* C */#include<stdio.h>#include<unistd.h>#include<omp.h>intmain(){/* Serial Region (master thread) *//* Parameters of the Application */intlen=30;charname[30];/* OpenMP Parameters */intid,nthreads;/* Master thread obtains information about itself and its environment. */nthreads=omp_get_num_threads();/* get number of threads */id=omp_get_thread_num();/* get thread */gethostname(name,len);/* get run-host name */printf("SERIAL REGION: Runhost:%s Thread:%d of %d thread hello, world\n",name,id,nthreads);/* Open parallel region. *//* Each thread obtains information about itself and its environment. */#pragma omp parallel private(name,id,nthreads){nthreads=omp_get_num_threads();/* get number of threads */id=omp_get_thread_num();/* get thread */gethostname(name,len);/* get run-host name */printf("PARALLEL REGION: Runhost:%s Thread:%d of %d threads hello, world\n",name,id,nthreads);}/* Close parallel region. *//* Serial Region (master thread) */printf("SERIAL REGION: Runhost:%s Thread:%d of %d thread hello, world\n",name,id,nthreads);return0;}