Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

关于 P 的状态流转 #57

Open
questocat opened this issue Nov 27, 2022 · 0 comments
Open

关于 P 的状态流转 #57

questocat opened this issue Nov 27, 2022 · 0 comments

Comments

@questocat
Copy link

问题描述

image

请问这个 P 的状态流转图中:_Prunning -> _Pidle 由 retake 方法触发是否准确呢(图中红色线框)?

我猜测指的是:随着 preempt 发生,G 解绑后,进入新的调度,此时发现该 P 没有可运行的 G 了,然后还是调用的 releasep 方法将 P 的状态由 _Prunning 改为 _Pidle 的?

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

No branches or pull requests

1 participant