command
Version:
v0.5.32
Opens a new window with list of versions in this module.
Published: Nov 15, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
デッドロックのサンプルです.
概要
実行すると以下のような結果となります。
$ go run cmd/deadlock/main.go
[v] 0
[v] 1
[v] 2
[v] 3
[v] 4
fatal error: all goroutines are asleep - deadlock!
goroutine 1 [chan receive]:
main.main()
/workspace/try-golang/cmd/deadlock/main.go:25 +0xa6
exit status 2
参考情報
Source Files
¶
Click to show internal directories.
Click to hide internal directories.