Text-only Table of Contents (frame/ no frame)
(21) OpenMP v3.0 Previous Top Next

OpenMP v3.0


History of OpenMP




OpenMP Tasks:





c  C example  

#pragma omp parallel
{
#pragma omp single
{
p=listhead;
while (p) {
/* create a task for each element of the list */
#pragma omp task
process(p); /* porcess list element p */
p=next(P);
}
}
}







Previous Top Next


OpenMP3.0.src  last modified Mar 23, 2009 Introduction Table of Contents
(frame/no frame)
Printable
(single file)
© Dartmouth College