摘要: "参考" goroutine 和 thread thread 内存占用 创建和销毀 切换 m:n模型 Go runtime 会负责 goroutine 的生老病死,从创建到销毁整个生命周期,都一手包办。 在同一时刻,一个线程上只能跑一个 goroutine。 当 goroutine 发生阻塞(例如上 阅读全文
posted @ 2020-01-09 16:40 mmaotai 阅读(688) 评论(0) 推荐(0) 编辑