Yes, You Have Been Writing SPSC Queues Wrong Your Entire Life

Yes, You Have Been Writing SPSC Queues Wrong Your Entire Life

Recently a post on Hacker News by Juho Snellman showed that he has been writing single producer, single consumer queues his entire life and presented a solution for it.

In this article we show that his solution can be yet improved with a simple but effective trick such that indices are kept bounded.

Article: https://www.vitorian.com/x1/archives/370


James Hirschorn, Ph.D.

Consultant, Data Science and Quantitative Research at Quantitative Technologies (CANADA)

7 年

No paywall when I just tried from a Canadian IP address.

回复
Julien ZAK

Executive Director - Quant - Tech Lead - C++ & Python

7 年
回复
James Hirschorn, Ph.D.

Consultant, Data Science and Quantitative Research at Quantitative Technologies (CANADA)

7 年

For comparison, there is also boost::lockfree::spsc_queue.

回复

要查看或添加评论,请登录

社区洞察

其他会员也浏览了