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

讨论一下协程 #2

Open
xunshuidezhu opened this issue Mar 6, 2020 · 0 comments
Open

讨论一下协程 #2

xunshuidezhu opened this issue Mar 6, 2020 · 0 comments

Comments

@xunshuidezhu
Copy link
Owner

每个线程一个时刻只有一个协程运行,协程可以通过yield和resume实现异步,而这个cpu调度实际内核cfs也做了,另外协程跨线程的问题,调度器分配给线程的消息队列可实现协程的移动

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