#pragma omp parallel { int x; // private to each thread ? } #pragma omp parallel for for (int i = 0; i < 1000; ++i) { int x; // private to each thread ?
The data within a parallel region is private to each thread.
Kindly refer http://en.wikipedia.org/wiki/OpenMP#Data_sharing_attribute_clauses [Data sharing attribute clauses]