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

回答cyber笔记中的疑问 #51

Open
DieYoungWsn opened this issue May 30, 2023 · 0 comments
Open

回答cyber笔记中的疑问 #51

DieYoungWsn opened this issue May 30, 2023 · 0 comments

Comments

@DieYoungWsn
Copy link

image

uint32_t pid = cr->processor_id();
这一句,processor_id默认值是-1(二进制位上全是1),但是赋值给无符号32位整型变量pid时,pid就是uint32_t的最大值(2^32-1),肯定要大于逻辑CPU(Processor)的数量的,所以入全局队列。

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