coroutine

n.  协同程序;联立程序

计算机



双语例句

  1. But there is no reason the two concepts could not be combined: If a coroutine/ thread yields a jump target, the scheduler can jump where requested ( unless overridden by thread priorities, perhaps).
    我们完全可以把这两个概念结合在一起:如果协同程序/线程生成了跳转目标,调度程序就可以跳转到被请求的地方(也许,除非被线程优先级覆盖)。
  2. Every co-routine must occasionally yield the processor to other co-routines using coroutine. yield().
    每个协同例程都必须使用coroutine.yield()偶尔获得其他协同例程的处理器。
  3. Threads do not start when created; instead, a co-routine is started after the fact, using coroutine. resume ( t), where t is a thread.
    线程不会在创建时启动;相反,它是在创建之后使用coroutine.resume(t)启动的,其中t就是一个线程。
  4. The thing to notice about this wrapper is that each generator/ coroutine yields a tuple that contains its intended branch destination.
    关于这个包装器要注意的一点是,每个生成器/协同程序都会生成一个包含它的预期分支目标的元组。
  5. However, if a coroutine/ thread merely yields None, the scheduler could make its own decision about the appropriate thread for the next attention.
    然而,如果协同程序/线程只生成None,调度程序就可以自己决定下一步要关注哪个适当的线程。
  6. Basically, a generator/ coroutine exits with a GOTO target.
    生成器/协同程序基本上都在GOTO目标处退出。
  7. A thread is a co-routine created by calling the built-in function coroutine. create ( f), where f is a Lua function.
    线程是通过调用内嵌函数coroutine.create(f)创建的一个协同例程(co-routine),其中f是一个Lua函数。
  8. Goroutines are lightweight parallel paths of program execution similar to threads, coroutines, or processes.
    Goroutine是轻量级的并行程序执行路径,与线程,coroutine或者进程类似。
  9. Another interesting development is the work on coroutine support for MLVM ( and perhaps eventually for JVM proper).
    另一个有趣的东西是针对MLVM(也许最终是针对JVM本身)的协程支持工作。
  10. Programming Coroutine in Standard PASCAL
    用PASCAL进行协同程序设计