title: Can I use the same function delegate in a Parallel.For Loop
body: <p>Is it possible to use the same function delegate in a Parallel.For loop or do I run in a deadlock.</p>
  
  <p>This means I would like to do something like this:</p>
  
  <pre><code>    public Execute(float[] input, Func&lt;float, int, bool&gt; WorkOnIt)
      {
          Parallel.For(0, input.GetLength(0), i =&gt;
          {
              if(WorkOnit(input, i)
                 ...
              ...
           });
      }
  </code></pre>
  
  <p>Thanks a lot!</p>