Synchronisation and Aggregation(www.blackwasp.co.uk)

submitted by rcashrcash(4149) 8 months, 22 days ago

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 comment |category: |Views: 24

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by dpetersondpeterson(4397) 8 months, 18 days ago 0

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?

Reply

information Login or create an account to comment on this story