MySQL常见问题 Posted on April 10, 2025 连接MySQL报错: 通信链路故障(Communications link failure) [Read More] Tags: lrzsz
如何将“读-改-写”改为原子操作? Posted on April 9, 2025 在某些特定的 “读-改-写” 场景 下,确实可以通过 atomic.SwapUint32 或 atomic.CompareAndSwapUint32(CAS)来实现无锁的原子操作,从而避免加锁。但需要根据具体场景选择合适的方法。 [Read More] Tags: lrzsz