Why use SyncLocks in .NET for simple operations when Interlocked class is available?
- by rwmnau
I've been doing simple multi-threading in VB.NET for a while, and have just gotten into my first large multi-threaded project. I've always done everything using the Synclock statement because I didn't think there was a better way.
I just learned about the Interlocked Class - it makes it look as though all this:
Private SomeInt as Integer
Private…