摘要: 一、读写锁(hello.go) package main import ( "fmt" "sync" "time" ) var ( x int64 wg sync.WaitGroup rwlck sync.RWMutex //读写锁类型变量 ) func write() { defer wg.Don 阅读全文
posted @ 2021-07-22 13:01 vosoland 阅读(212) 评论(0) 推荐(0)