golang试题-下面的代码是否会产生死锁?

package main

import "sync"

func main() {
    var mu sync.Mutex
    mu.Lock()
    defer mu.Unlock()
    mu.Lock()
}

网友评论0