Is Interlocked.Increment(ref x) faster or slower than x++ for ints and longs on various platforms?
Interlocked.Increment(ref x)
x++
It's slower. However, it's the most performant general way I know of for achieving thread safety on scalar variables.