思路
话题
- 什么是协程
用户级线程
- 优点是什么
满足高并发和扩展性完美设计
- 缺点是什么
io操作不能使用系统提供接口。
我说不一定正确,欢迎随时来反驳
重点
- It allows the design of fast and highly scalable applications. An application will scale well with both load and number of CPUs.
Multi-Process EDSM
高性能、高并发、高扩展性和可读性的网络服务器架构:StateThreads
- ST scheduler (不懂)
the ST scheduler is hidden inside the library and invisible to an application writer.
- traditional EDSM (不懂)
event-driven state machines (EDSM)
- virtual processor (不懂)
参考
- https://wangcy6.github.io/post/2020/st