Is multiple-producer, single-consumer possible in a lockfree setting?

后端 未结 4 423
渐次进展
渐次进展 2021-02-01 09:25

I have a bunch of threads that are doing lots of communication with each other. I would prefer this be lock free.

For each thread, I want to have a mailbox, where other

4条回答
  •  臣服心动
    2021-02-01 10:13

    Here's a paper from the University of Rochester illustrating a non-blocking concurrent queue. The algorithm described in the paper shows one technique for making a lockless queue.

提交回复
热议问题