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

A full-featured, high-performance and lightweight scheduler for libaco is needed #22

Open
nishantd01 opened this issue Sep 25, 2018 · 12 comments

Comments

@nishantd01
Copy link

How can i launch a coroutine which waits for 5 secs and do some operation in a data structure.
I don't want main thread to wait. sleep(5) holds the main thread itself.

@hnes
Copy link
Owner

hnes commented Sep 26, 2018

It would need a scheduler to schedule all the coroutines.

About two months ago, I started to develop a high-performance Golang-like coroutine scheduler for libaco. It would come to the public in about two weeks. The code of the scheduler itself has already finished, I'm now doing the performance optimization, strict code review and writing the test suites stuff.

@hnes hnes changed the title Lauch a coroutine which waits asynchronously A full-featured, high-performance and lightweight scheduler for libaco is needed Sep 26, 2018
@hnes hnes self-assigned this Sep 26, 2018
@hnes hnes pinned this issue Dec 24, 2018
@hnes hnes unpinned this issue Dec 24, 2018
@signifox
Copy link

Any update now?

@hnes
Copy link
Owner

hnes commented Jan 25, 2019

I'm really sorry to postpone the release of the next version which would include the solution of this issue. I'm during a break now, and I will definitely continue to work on this after the rest is finished.

Thank you very much for your attention to this project, @signifox :-)

@guangqianpeng
Copy link

guangqianpeng commented Mar 22, 2019

I am trying to implement a simple scheduler for libaco. Hope you guys can take look: github.com/guangqianpeng/libaco-sched

@echoface
Copy link

please keep libaco tiny and clean, another repo to start scheduler work?

@QingruiHuang
Copy link

"a high-performance Golang-like coroutine scheduler for libaco" 有进一步的发布计划吗?

@hnes
Copy link
Owner

hnes commented Feb 25, 2021

@QingruiHuang 抱歉,我现在的业余时间用在了开发另一个开源项目上,等它告一段落之后还会回来,但遗憾的是我无法给出具体的时间承诺,也许几个月。

English Translation:

@QingruiHuang Sorry, my spare time is now spent on developing another open-source project and I would like to come back when it's finished. But unfortunately, I can't give you a promise of the precise date, probably maybe several months.

@echoface
Copy link

echoface commented Mar 2, 2021

https://github.com/HuanGong/ltio.git
here is a schedule implement, it based on a reactor message loop module, it‘s simple and "may be effective" enough.
it use libcoro/libaco as coroutine backend

@QingruiHuang
Copy link

@huangong 非常感谢

@beef9999
Copy link

@QingruiHuang @guangqianpeng @nishantd01
https://github.com/alibaba/PhotonLibOS The fastest io engine (scheduler). Although it's now running in stackful coroutines, our two projects have very much common in the coroutine API.

@QingruiHuang
Copy link

多年以后,再回来这里,依然没见更新

@echoface
Copy link

echoface commented Jul 19, 2024

多年以后,再回来这里,依然没见更新

@QingruiHuang 业务需要的话,自己实现一个成本还好;这样自己内部业务系统用起来也更知道底层的调度逻辑一些

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants