简体   繁体   English

Ruby 1.9.3中的并行测试有多平行?

[英]How parallel are parallel tests in Ruby 1.9.3?

In Ruby 1.9.3, you're allowed to run multiple test cases at once . 在Ruby 1.9.3中, 您可以一次运行多个测试用例 I'm not sure whether this is a feature of the language, the minitest library, or a feature of YARV, so apologies for any bad terminology. 我不确定这是该语言的功能,最小的库,还是YARV的一个功能,所以对任何不好的术语表示道歉。

But have they eliminated the GVL for this, or does this merely mean that if one thread's doing IO, another thread can utilize the CPU? 但是他们为此消除了GVL,或者这仅仅意味着如果一个线程在做IO,另一个线程可以利用CPU吗?

The implementation doesn't use threads, but separate processes communicating through pipes. 实现不使用线程,而是使用管道进行通信的单独进程。 See eg this presentation . 参见例如此演示文稿 So the GVL/GIL doesn't come into play. 所以GVL / GIL没有发挥作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM