daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest Oct 17th, 2018 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top