纤程可以在任意线程上运行。
确定在纤程模式下运行时哪些统计信息不够准确。
Establish what statistics are inaccurate when running in fiber mode.
目前,两个程序库都着重于使用纤程实现解决方案。
它面向Ruby 1.9,并使用了诸如纤程的并发特性。
It targets Ruby 1.9 and makes use of features such as Fibers for Concurrency.
由于纤程比完全线程更轻量级,而且你无需担心抢占问题,因此他的方法很有优势。
His approach has some advantages since Fibers are lighter-weight than full threads and you don't need to worry about preemption.
我需要这些功能来替代事务的当前ActiveRecord实现并使得纤程可查。
I needed those to replace the current ActiveRecord implementation of transactions and make it Fiber aware.
多亏了纤程,我们可以写出这种看似明明是阻塞的代码,却能够以非阻塞的行为运行。
Thanks to Fibers we are able to write seemingly blocking code that is run in a non-blocking manner.
依我看,它提供了一个连接池把传入代码包装在纤程当中,等到连接可用的时候再恢复纤程。
As I see, it allows to pass code wrapped in Fibers to a pool of connections, which then resumes the Fibers as connections become available.
Mohammad a . Ali纤程对于存储纤程本地变量方面的功能是缺失的,然而线程可以做到。
Mohammad A. Ali Fibers lack a facility to store fiber local variables as you can do with threads.
其结果令人印象深刻;JRuby纤程加上Lukas做的东西运行起来比Ruby 1.9中的绿色线程实现更好,这让我们觉得有些不可思议。
The results were very impressive; JRuby fibers plus Lukas's continuations performed better than the green-threaded implementation in Ruby 1.9, a feat we'd thought impossible.
随着Ruby 1.9增加了纤程Fibers(协同程序),以及最近Erlang和Actors的流行,一组少为人之的概念进入了Ruby的编程世界。
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的编程世界。
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.
应用推荐