lab002

command
v0.0.0-...-f10d331 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 2 Imported by: 0

README

互斥锁示例2,嵌套锁

注意

go里面是不支持嵌套锁的,像代码中的这种情况就会直接报错。

运行结果

Imgur

参考资料

https://stackoverflow.com/questions/14670979/recursive-locking-in-go

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL