Tuesday, September 24, 2013

C#: When To Use Parallel.ForEach() Or AsParallel()

Conclusion: 
Parallel.ForEach() is intended for simple data with independent actions.
ForAll() is intended to be used at the end of a (possibly complex) PLINQ query.

Thanks to svick on StackOverflow for answering this.

No comments: