1 void bar (void); 2 3 void foo(int x,unsigned long long y)4foo (int x, unsigned long long y) 5 { 6 #pragma omp task 7 bar (); 8 #pragma omp taskloop 9 for (int i = 0; i < 10; i++) 10 bar (); 11 #pragma omp task 12 bar (); 13 #pragma omp taskloop 14 for (unsigned long long int i = 0; i < y; i++) 15 bar (); 16 #pragma omp task priority (1) 17 bar (); 18 #pragma omp taskloop priority (1) 19 for (int i = 0; i < 10; i++) 20 bar (); 21 #pragma omp task priority (x + 1) 22 bar (); 23 #pragma omp taskloop priority (x + 1) 24 for (unsigned long long int i = 0; i < y; i++) 25 bar (); 26 } 27