随笔 - 809  文章 - 0 评论 - 144 阅读 - 770万

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