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

线程模型支持协程 #375

Open
hnwyllmm opened this issue Apr 15, 2024 · 0 comments
Open

线程模型支持协程 #375

hnwyllmm opened this issue Apr 15, 2024 · 0 comments
Labels
feature help wanted Needs help from a contributor

Comments

@hnwyllmm
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

当前线程模型支持一个连接一个线程和线程池模式,我们可以扩展更多的线程模型。协程可以让程序运行的更加高效,已经有比较多的开源库支持了协程开发,并且较新的C++标准也对协程做了支持。

Describe the solution you'd like
A clear and concise description of what you want to happen.

引入第三方协程库或者依赖新的C++标准实现自己的协程库。

第三方库比如 boost、libco、libgo等。

Additional context
Add any other context or screenshots about the feature request here.

协程对应用层程序开发和库本身都有较高的要求,一些耗时的系统调用,比如 connect、read、write 等都可以在协程库实现hook,但是像mutex等,如果实现不好或者使用不当,会导致系统很不稳定。

@hnwyllmm hnwyllmm added help wanted Needs help from a contributor feature labels Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature help wanted Needs help from a contributor
Projects
None yet
Development

No branches or pull requests

1 participant