Guest User

Untitled

a guest
Oct 17th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <omp.h>
  3.  
  4. void increment1(){
  5. int x;
  6. x=0;
  7. for(int i = 0; i<30000000000000;i++){
  8. ++x;
  9. }
  10. printf("%dn",x );
  11. }
  12.  
  13. int main(){
  14. #pragma omp parallel
  15. {
  16. #pragma omp sections
  17. {
  18. #pragma omp section
  19. { increment1(); }
  20. }
  21. }
  22. printf("Continuen" );
  23.  
  24. return 0;
  25. }
Add Comment
Please, Sign In to add comment