Adventures in Programming
And other C# related tidbits that I've found useful.
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:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment