简体   繁体   中英

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 . 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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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