...于全局解释器锁的存在,Ruby代码不会并行执行);此外,Fibers对延续机制(Continuations)进行了更新并将协同程序(Coroutines)引入到了Ruby中。
基于20个网页-相关网页
linkage between coroutines [计] 协同程序连接
symmetric coroutines 提供对称协同
generator based coroutines 基于生成器的协程
以上来源于: WordNet
For weightless threads, the requirements are slightly different from those for coroutines.
对于轻便线程来说,它们的需求与协同程序的需求稍有不同。
Goroutines are lightweight parallel paths of program execution similar to threads, coroutines, or processes.
Goroutine是轻量级的并行程序执行路径,与线程,coroutine或者进程类似。
The difference is that the scheduler itself should decide branch targets rather than receive them from the generator/coroutines. Let me show you a complete test program and sample
不同之处在于,调度程序本身应该决定分支目标,而不是从生成器/协同程序接收分支目标。
应用推荐