C#/.NET Little Wonders: Interlocked Increment(), Decrement(), and Add(

added by BlackRabbitCoder
8/9/2012 8:22:47 PM

0 Kicks, 72 Views

Often times, we need to update a count in a multi-threaded program. This may be an incrementing, decrementing, or adding a value in a thread-safe manner. This post will discuss one of the lightest ways to do this: the Interlocked class.


1 comments

BlackRabbitCoder
8/9/2012 8:24:19 PM
new post