摘要: 在 Go 语言的 GMP 模型中,调度器负责将 goroutine 分配到不同的 P(Processor)上执行。当本地的 goroutine 队列(称为 LRQ,Local Run Queue)为空时,P 会尝试从全局的 goroutine 队列(称为 GQ,Global Run Queue)中获 阅读全文
posted @ 2024-12-08 15:35 del88 阅读(65) 评论(0) 推荐(0)