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

您好,我对Max的源码有一些理解上的问题 #3

Open
champagne9 opened this issue Apr 16, 2022 · 0 comments
Open

您好,我对Max的源码有一些理解上的问题 #3

champagne9 opened this issue Apr 16, 2022 · 0 comments

Comments

@champagne9
Copy link

在在rps.c的rps_up_read()函数中,若go_highway(rps, -1)返回值为false(即写者数不为0),就对lowway_cnt自减并判定,若为0则唤醒所有写者,请问为什么要对lowway_cnt进行自减呢?
另外,lowway_cnt仅指的是休眠中的进程,还是休眠进程与迁移进程的总数?

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