上一篇(L1) 下一篇(L3) 2021 L2 go的垃圾回收机制 使用线程所遇到的挑战 线程的竞态条件,解决方法: ● 通过避免使用共享内存,而是使用channel; ● 使用锁; 协调 ● 使用channel或者条件变量 死锁