Lock Free Queue — Single Producer, Multiple Consumers

前端 未结 4 1199
一生所求
一生所求 2020-12-13 11:06

I am looking for a method to implement lock-free queue data structure that supports single producer, and multiple consumers. I have looked at the classic method by Maged Mic

4条回答
  •  有刺的猬
    2020-12-13 11:31

    This is an old question, but no one has provided an accepted solution. So I offer this info for others who may be searching.

    This website: http://www.1024cores.net

    Provides some really useful lockfree/waitfree data structures with thorough explanations.

    What you are seeking is a lock-free solution to the reader/writer problem.

    See: http://www.1024cores.net/home/lock-free-algorithms/reader-writer-problem

提交回复
热议问题