title: parallel execution in C program
body: <p>I have a question about possibility of implementing parallel execution inside a C program.
  My code looks like this:</p>
  
  <pre><code>struct str {
     field;
     field2;
     struct name * ptrNext;
  }
  
  // something others
  
  int main() {
      struct str *pHead = malloc((...)sizeof(struct str));
      struct str *ptr;
      // other.....
      /* Generation of dynamic list*/
  
      ptr=pHead;
  
      while(... ... ...) {
            someFunctionOnNode(ptr);
            ptr=ptr-&gt;ptrNext;
      }
  }
  </code></pre>
  
  <p>To increase the speed of program and to exploit having multiple cores in the processor, I would like to parallelize launch of function <code>someFunctionOnNode</code>.</p>
  
  <p>Is there a way to do this in C?</p>