How to implement a practical fiber scheduler?

前端 未结 5 1234
独厮守ぢ
独厮守ぢ 2020-12-30 09:29

I know the very basics about using coroutines as a base and implementing a toy scheduler. But I assume it\'s oversimplified view about asynchronous schedulers in whole. Ther

5条回答
  •  北海茫月
    2020-12-30 10:09

    Though it's a little bit late to answer, I'd like to mention that I have a practical implementation of a fiber library in C, called libevfibers.

    Despite of being a young project, it is used in production. It provides a solution not only to classical asynchronous operations like reading/writing a socket, but also addresses the filesystem IO in a non-blocking manner. The project leverages 3 great libraries --- libcoro, libev and libeio.

提交回复
热议问题