6

在 Ruby 1.9.3 中,您可以一次运行多个测试用例。我不确定这是语言的特性、minitest 库还是 YARV 的特性,因此对任何不好的术语表示歉意。

但是他们是否为此取消了 GVL,或者这仅仅意味着如果一个线程正在执行 IO,另一个线程可以使用 CPU?

4

1 回答 1

7

The implementation doesn't use threads, but separate processes communicating through pipes. See e.g. this presentation. So the GVL/GIL doesn't come into play.

于 2011-11-01T20:47:20.353 回答