#include #ifdef _OPENMP #include #endif int main() { /*Example of sections*/ int n=7; int a[n],ta[n],b[n],tb[n]; #pragma omp parallel shared(a,ta,b,tb,n) { #pragma omp sections { #pragma omp section { int tid=0; /*Dummy thread number for the case OMP is not enabled*/ #ifdef _OPENMP tid=omp_get_thread_num(); #endif for (int i=0; i