Interlocked

This lesson explains how the Interlocked class in C# works and its related caveats.

We'll cover the following...

Interlocked

The Interlocked class offers a number of methods that perform atomic operations that otherwise can't be atomically performed atomically. An example of such operations is incrementing a variable as follows:

int i = 0;
i++;

The single increment operation consists of ...