4

Go 实现的固定 routine pool, 挂掉重新拉起新 routine

 2 years ago
source link: https://www.v2ex.com/t/790456
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  程序员

Go 实现的固定 routine pool, 挂掉重新拉起新 routine

  hulk · git-hulk · 1 天前 · 557 次点击

GitHub: https://github.com/git-hulk/routines

看了一圈没有看到比较满意的实现,自己编个方轮子~

2 条回复    2021-07-20 13:46:29 +08:00

wellsc   12 小时 17 分钟前

这东西应该是 gmp 封装好的

PiersSoCool   9 小时 34 分钟前

支持楼主开源。

虽然我一直迷惑一些问题。说线程不好管理、增强复用就发明了线程池,然后又说线程池不能够满足大并发就搞了协程就不用线程池了,然后现在又搞出来协程池(本身就是线程池的 io 多路复用实现?),我确实比较困惑。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK