UNB/ CS/ David Bremner/ teaching/ cs3383/ lectures/ 41.1-demos/ for-race.c
/* Compile with -fopenmp */
#include <stdio.h>

int main(int argc, char** argv){

  long x = 0;

#pragma omp parallel for
  for (int i=0; i<10000; i++){
    x++;
  }

  printf("x = %ld\n", x);
}