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

runtime对net IO切换时机的问题 | golang 系统调用与阻塞处理 #35

Open
lysShub opened this issue Oct 13, 2022 · 0 comments

Comments

@lysShub
Copy link

lysShub commented Oct 13, 2022

golang 系统调用与阻塞处理 你说到go对net IO有专门的优化,不会阻塞M。

但是有个问题就是,net IO在读写频繁时,理论上来说不切换G性能更高,读取下一个数据包等待的代价低于G切换的代价。所以我想问一下,go是直接切换的还是有一些什么策略?

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