title: omp parallel vs. omp parallel for
body: <p>What is the difference between these two?</p>
  
  <p>[A]</p>
  
  <pre><code>#pragma omp parallel
  { 
      #pragma omp for
      for(int i = 1; i &lt; 100; ++i)
      {
          ...
      }
  }
  </code></pre>
  
  <p>[B]</p>
  
  <pre><code>#pragma omp parallel for
  for(int i = 1; i &lt; 100; ++i)
  {
     ...
  }
  </code></pre>