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

coroutines-in-c/ #10

Open
utterances-bot opened this issue Sep 29, 2021 · 6 comments
Open

coroutines-in-c/ #10

utterances-bot opened this issue Sep 29, 2021 · 6 comments

Comments

@utterances-bot
Copy link

使用 C 语言实现协程

一种基于达夫设备的思想实现的协程。

https://mthli.xyz/coroutines-in-c/

Copy link

好文

Copy link

好!

Copy link

想直接用的可以用 boost::asio 的 coroutine.hpp,就用的这个方法。

Copy link

uason7 commented Apr 13, 2023

好文,狠狠收藏了

Copy link

KKould commented Apr 16, 2024

我的年度最佳

Copy link

最近在研究这块,南京大学蒋炎岩老师的操作系统课程给了我很大启发,同时他的实验课提到其实C提供了保存现场和恢复现场的方法,也就是setjmp和longjmp。另外提供一个额外的视角,kotlin里面的协程也是靠类似的“设置label”的方式来实现的。

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

7 participants