lock_free_queue

From Scott:
底子好、夠用功的人可以只讀: http://kernel.org/pub/linux/kernel/people/paulmck/perfbook/perfbook.html (偏重 CPU architecture 與 Linux kernel 用的 memory model,還缺較『抽象』的 C11 / C++11 memory model,持續更新中)

我建議的書單在 http://itrs.tw/wiki/Shared_Memory_Concurrency#Recommended_Books

Benefit

  • enable maximum concurrency
  • lock-free data structures is robustness. If a thread dies while holding a lock, that data structure is broken forever.

Downside

  • the atomic operations used for lock-free code can be much slower than nonatomic operations
  • hardware must synchronize data between threads that access the same atomic variables
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License