CAS,spanlock,synchronized
1.synchronized关键字
https://blog.csdn.net/m0_67683346/article/details/126798890
2.数据的同步加锁机制 的几种方法
https://blog.51cto.com/u_4018548/6419772?u_atoken=58b812fc-6042-4120-ad56-b5841f886ba8&u_asession=01PJyDOOvEdPR9aiJdRcyW9t1kcyrGk4x3_yZbm0x-p7aknCEQmoorEoXhGVDJsCI-GbhpPbpLDzJ2cLEzn3y9Rdsq8AL43dpOnCClYrgFm6o&u_asig=05_wGiXn1r33p7t7xy6IHKhXs9ZCPmziqiswoNpZoSQRABD2pdectyh2ImERYgsXYCMC4wfKOod3zT-zmns07aWkBss48qlGjLRSXs0qx4Nk1E-gj9VU1785-bdIhfVlh0UFDDbUQflF4FikgzE3ObikutNIIxwqf5lHjCXNemXhsP6vIBOHNFifFXtId1r-GgksmHjM0JOodanL5-M1Qs1UJTbRdVuhff4eVAMNGrL5HiX6OTb0xykWf9VXbS7sWi8RKJGlxTAyfKiSrxBqmZn8Gf1-Xsnz8mf5ERUXI478nY94r_LXIIil3Y3aVPRGAe&u_aref=iwXNTGh9dlsso0R90x1HwpF5IcY%3D
3.一文看懂:C# 多线程下的调优
https://zhuanlan.zhihu.com/p/496597166?utm_id=0
CAS,spanlock