Lock free stack and queue in C#

后端 未结 4 850
一向
一向 2020-12-14 00:58

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 wra

4条回答
  •  北海茫月
    2020-12-14 01:16

    Without knowing anything about it, there is one library I stumbled across here.

    Though probably not quite what you are looking for, at least there is an implementation and discussion on StackOverflow of a lock free queue structure in C# here. Going through the StackOverflow code review process might give some confidence about its safety, or provide information about how to go about building your lock-free containers yourself.

提交回复
热议问题