Go: 9-1 goroutine 并发编程

示例
func main() {
	for i := 0; i < 1000; i++ {
		go func(i int) {
			for {
				fmt.Printf("Hello form goroutine %d \n", i)
			}
		}(i)
	}
} 
协程 Coroutine
goroutine的调度器

image

goroutine的定义
goroutine可能的切换点