目前,两个程序库都着重于使用纤程实现解决方案。
它面向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.
多亏了纤程,我们可以写出这种看似明明是阻塞的代码,却能够以非阻塞的行为运行。
Thanks to Fibers we are able to write seemingly blocking code that is run in a non-blocking manner.
其结果令人印象深刻;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.
纤程可以在任意线程上运行。
确定在纤程模式下运行时哪些统计信息不够准确。
Establish what statistics are inaccurate when running in fiber mode.
确定在纤程模式下运行时哪些统计信息不够准确。
Establish what statistics are inaccurate when running in fiber mode.
应用推荐