参考资料:
3. Why the "volatile" type class should not be useddfsdf
4.锁的意义
spinlock(自旋锁): http://en.wikipedia.org/wiki/Spinlock
lock-free(无锁编程)
mutex(互斥锁)
read_write_lock(读写锁)
最基本的四种乱序行为,包含:LoadLoad乱序;LoadStore乱序;StoreLoad乱序;StoreStore乱序,分别对应于读读乱序,读写乱序,写读乱序,写写乱序。
Non-blocking Synchronization :