package main import "fmt" import "runtime" func main() { go hog() for i := 0; ; i++ { fmt.Println(i) } } func hog() { for { runtime.Gosched() } }