C#/.NET Little Wonders: Interlocked Read() and Exchange()

added by BlackRabbitCoder
8/23/2012 9:27:41 PM

1 Kicks, 106 Views

In my previous post, we looked at incrementing and decrementing an int or long atomically using the Interlocked class, this post continues with other features of Interlocked by discussing Read() and Exchange() for reading and writing atomically in a light, thread-safe manner.


8/23/2012 9:27:59 PM
new post