Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int x0 = 2;
- int main() {
- int x1 = 2;
- #pragma omp parallel shared(x0, x1)
- {
- int x2 = 0;
- static int x3 = 0;
- x0++;
- x1++;
- x2++;
- x3++;
- printf("Par x0 = %d, x1 = %d, x2 = %d, x3 = %d\n", x0, x1, x2, x3);
- }
- printf("Seq x0 = %d, x1 = %d\n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment