db
jdk
https://www.cnblogs.com/silyvin/p/9106785.html
当然jdk已经封装好了一个:AtomicStampedReference
https://www.cnblogs.com/java20130722/p/3206742.html
https://mp.weixin.qq.com/s?__biz=MzI4Njc5NjM1NQ==&mid=2247487555&idx=1&sn=e9ac2a352324af53165374542e1875ef&chksm=ebd62f6fdca1a67921a76738150b717b25e376d90ff70dfae395b0e2439ccf737d5c215ff13b&scene=0&xtrack=1&key=ffa74eaf656e533e55c3c242bc5b75cbcb9d4804429e404112c8fd10162edeabc3cb95c98527bd10b5363f6b8747a4264f16a3f3b309cccb4f88eeeee128852350102dfff666332af68f17a1ceaa9ae4&ascene=0&uin=MTA2NzUxMDAyNQ%3D%3D&devicetype=iMac+MacBookAir6%2C2+OSX+OSX+10.10.5+build(14F2511)&version=11020012&lang=zh_CN&pass_ticket=SnaIiDaOtgdDXxsrocUSPlZo61YYYNfPdrKzj1JpPYYBJHo0N3OUgwYvWhXB9WU%2B