https://gist.github.com/matteobertozzi/2758693
http://www.cs.rochester.edu/research/synchronization/pseudocode/queues.html
http://blog.lse.epita.fr/articles/42-implementing-generic-double-word-compare-and-swap-.html

 http://www.drdobbs.com/parallel/practical-lock-free-buffers/219500200

 

Try to figure out those 4 hyperlinks ,  the key is DWCAS !!!

 

Using ring buffer is much easier , except for it waste memory ,  what you should keep an eye on

is , using DWCAS , that is quite a great tool to use ~~~

 

 

 

創作者介紹
創作者 hedgezzz 的頭像
hedgezzz

hedgezzz的部落格

hedgezzz 發表在 痞客邦 留言(0) 人氣()