对Volatile的认识(2)

为了保证原子性,也就是线程安全性,需要加锁来保证线程安全,Volatile本身是不能保证

原文地址:https://www.cnblogs.com/siyuan7657/p/12588500.html