Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

调度时机章节有误 #47

Open
jejayhe opened this issue May 21, 2022 · 0 comments
Open

调度时机章节有误 #47

jejayhe opened this issue May 21, 2022 · 0 comments

Comments

@jejayhe
Copy link

jejayhe commented May 21, 2022

实际描述

https://golang.design/go-questions/sched/when/

  • 原文页码:
  • 原文段落:
复制原文段落

image

预期描述

还包括 “函数调用”的时候,每个函数头都有一行栈检查代码。会有一个背景程序(来达到抢占式调度的目的)定时污染这个栈limit,导致程序进入runtime,
触发调度

参考 https://www.youtube.com/watch?v=-K11rY57K7k
52:24 function prologue
image

52:41 spoof stack limit

或者也可以参考 https://golangbyexample.com/goroutines-golang/
image

修改后的段落

附图

必要时,请附上相关页面的照片或者截图

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant