Parallel.Invoke the same method for a list of objects

Posted by iulianchira on Stack Overflow See other posts from Stack Overflow or by iulianchira
Published on 2010-06-06T15:57:00Z Indexed on 2010/06/06 16:02 UTC
Read the original article Hit count: 355

Filed under:
|

I have a class MyClass with a method MyMethod. For every MyClass instance in a list of MyClass instances i want to invoke MyMethod and have them run in a separate thread. I am using .NET 4.0 and the Parallel extensions.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about parallel-extensions