How parallel are parallel tests in Ruby 1.9.3?

北慕城南 提交于 2019-12-08 19:44:22

问题


In Ruby 1.9.3, you're allowed to run multiple test cases at once. 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.

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?


回答1:


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.



来源:https://stackoverflow.com/questions/7493053/how-parallel-are-parallel-tests-in-ruby-1-9-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!