Mutex = sync.Mutex{} // 没有这一行就会死锁fmt.Printf("%#p\n", u1) fmt.Printf("%#p\n", u2) u2.Lock() defer u2.Unlock() } $ go run main.go ...
確定! 回上一頁