async implementations comparison

notes
Author

drindr

Published

May 9, 2025

embassy

编译期确定状态的内存空间(任务池)heapless
利用rust的future相关trait实现
调度器在await发生时poll该future的执行状态
结合::core::task实现

green thread

由任务通过yield返回到调度器,通过调度器修改寄存器来实现状态记录与切换

io_uring

ref
通过SQ(submission queue) CQ(completion queue)两个ring queue实现的异步