Lock free stack and queue in C#

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

    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

提交回复
热议问题