golang中的mutex锁

mutex锁中一种互斥锁,如果有多个goroutine需要对同一变量进行修改则需要对该变量施加mutex锁以实现安全读写。

原文地址:https://www.cnblogs.com/Csir/p/9851759.html