参考资料:
3. Why the "volatile" type class should not be useddfsdf
4.锁的意义
spinlock(自旋锁)
lock-free(无锁编程)
mutex(互斥锁)
read_write_lock(读写锁)
最基本的四种乱序行为,包含:LoadLoad乱序;LoadStore乱序;StoreLoad乱序;StoreStore乱序,分别对应于读读乱序,读写乱序,写读乱序,写写乱序。
Non-blocking Synchronization :
无锁编程: http://www.ibm.com/developerworks/cn/linux/l-cn-lockfree/index.html
锁的意义: http://hedengcheng.com/?p=803
http://www.cocoachina.com/bbs/read.php?tid-18135.html
原文:http://www.cnblogs.com/457220157-FTD/p/4127741.html