221 Views
IDisposable is a standard interface in the .NET framework. This article discusses the importance of using it in parallel or multithread programming.
Join in on a hand-picked round up of the best .NET articles every day.
Curated by our Moderators and Voted up by our Community. Free.
IDisposable is a standard interface in the .NET framework. This article discusses the importance of using it in parallel or multithread programming.
I personally use an Interlocked-based method to good effect here. There is really no need for something as "heavy" as locking here.