Synchronisation and Aggregation

added by rcash
9/3/2011 12:52:13 AM

119 Views

This is the fifth part of the Parallel Programming in .NET tutorial. In continuation of parallel loops, this article looks at synchronisation problems of aggregation and how to overcome them with locking and local state values.


1 comments

dpeterson
9/6/2011 8:58:45 AM
Thread local data seems to be the most efficient way to go about it, but if thread local data is not an option I wonder if the Interlocked.Increment (http://msdn.microsoft.com/en-us/library/dd78zt0c.aspx) method would be any faster than object locking?