Lock-free Multi-producer Multi-consumer Queue on Ring Buffer
http://natsys-lab.blogspot.ru/2013/05/lock-free-multi-producer-multi-consumer.htmlWork queue has always been one of the most hot points in server software. Here is how to scale it effectively to multi-core environment.