title: Can the .NET 4 Task Parallel Library use COM objects?
body: <p>This is an "is this possible, and if so can you give me a quick example because I can't find one online?" kind of question.</p>
  
  <p>I have a number of completely separate (i.e. "embarrassingly parallel") processes that I want to run in parallel using the Task Parallel library in .NET Framework 4 using C#. Some of these processes require the use of software that can be accessed via COM/OLE automation.</p>
  
  <p>Specifically, there is a Parallel.Foreach() loop that divides up the tasks from a list of items, basically calling a different function inside the Parallel.Foreach to handle the processing (so some of these functions employ COM libraries to work). </p>
  
  <p>Is this possible? Thanks.</p>