Sections

Parallel sections can be used to specify arbitrary work in different threads.

#pragma omp parallel sections
{
    #pragma omp section
    a[5]=a[5]*2;
    #pragma omp section
    a[1]=a[1]*2;
    #pragma omp section
    a[8]=a[8]*2;
}



aaron@csse.unimelb.edu.au Tue Oct 11 09:33:58 EST 2011