Search code examples
.netmultithreadingdata-structuressynchronizationlock-free

Lock free stack and queue in C#


Does anyone know if there are any lock-free container libraries available for .NET ?

Preferably something that is proven to work and faster than the Synchronized wrappers we have in .NET.

I have found some articles on the .NET, but none of them specify any speed benchmarking, nor do they inspire much confidence in their reliability.

Thanks


Solution

  • Late, but better than never I thought I would add Julian Bucknalls articles to this list.

    But he does not have performance numbers. In my testing of his structures the list scaled well compared to locking (very low kernel usage compared to ReaderWriterLock).

    His blog has a series of articles on lock free structures in C#.

    LOCK-FREE DATA STRUCTURES: THE STACK