0
kicks
C#/.NET Little Wonders: Interlocked Read() and Exchange()
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.