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

Reactor 调度问题 #57

Closed
liu-song opened this issue Oct 15, 2021 · 1 comment
Closed

Reactor 调度问题 #57

liu-song opened this issue Oct 15, 2021 · 1 comment
Labels
question Further information is requested

Comments

@liu-song
Copy link
Contributor

MainReactor 和SubReactor 都是作为goroutine ,在调度上会不存在优先级,请问有尝试过runtime.LockOSThread()把goroutine 固定在线程上, 在pollWait() 当中调用吗。类似下图这种机制
204efc18c00e8f1da313fc8866b9c92

@Hchenn
Copy link
Contributor

Hchenn commented Oct 15, 2021

试过,不行,包括 runtime_procPin/Unpin。
感谢提醒 ~

@Hchenn Hchenn added the question Further information is requested label Oct 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Development

No branches or pull requests

2 participants