For weightless threads, the requirements are slightly different from those for coroutines.
对于轻便线程来说,它们的需求与协同程序的需求稍有不同。
Another installment of this column presents a mechanism for simulating coroutines with simple generators.
本专栏的前面一部分提出了一种用简单的生成器模拟协同程序的机制。
Goroutines are lightweight parallel paths of program execution similar to threads, coroutines, or processes.
Goroutine是轻量级的并行程序执行路径,与线程,coroutine或者进程类似。
These are not true coroutines in the sense that they control only branches to and from the scheduler function.
这些协同程序并不是真正的协同程序,因为它们只控制到scheduler函数和来自该函数的分支。
This paper introduces a method of coroutines programming in PASCAL language. The method is based on usage existing compiler.
本文介绍了一种使用PASCAL语言进行协同程序设计的方法,这种方法是建立在现有PASCAL语言编译系统之上的。
With Ruby 1.9 adding Fibers (Coroutines) and the recent popularity of Erlang and Actors, a group of little known concepts entered the Ruby programming world.
随着Ruby 1.9增加了纤程Fibers(协同程序),以及最近Erlang和Actors的流行,一组少为人之的概念进入了Ruby的编程世界。
Since generators inherently implement the API for coroutines then it would be easy to accidentally use a generator when you actually expected to be using a coroutine.
由于发电机本身实施协程API的话,那就很容易意外地使用发电机当你真正希望使用一个协同程序。
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
不同之处在于,调度程序本身应该决定分支目标,而不是从生成器/协同程序接收分支目标。
I don't know if there's any chance of this getting into a real JVM release, but it would be greatly appreciated by any languages that need coroutines or threadlets.InfoQ Any big plans for 1.6?
我不知道是否有机会将协程纳入真正的JVM版本中,但对那些需要协程或threadlet的语言来说这点很有帮助。
I don't know if there's any chance of this getting into a real JVM release, but it would be greatly appreciated by any languages that need coroutines or threadlets.InfoQ Any big plans for 1.6?
我不知道是否有机会将协程纳入真正的JVM版本中,但对那些需要协程或threadlet的语言来说这点很有帮助。
应用推荐