deadlock

command
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

デッドロックのサンプルです.

概要

実行すると以下のような結果となります。

	$ 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

参考情報

Jump to

Keyboard shortcuts

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