Lock free stack and queue in C#

后端 未结 4 857
一向
一向 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:25

    Lock free data structures are going to have issues until they modify the CLR with the mess caused by memory models, see the CLI spec.

    Lock-free programming is sufficiently difficult that you shouldn't bother with it on a collection (container) level btw. True for any language out there..

提交回复
热议问题