Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 207
Andrew Grimm Avatar asked Sep 20 '11 23:09

Andrew Grimm


1 Answers

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.

like image 58
Tom De Leu Avatar answered Nov 15 '22 07:11

Tom De Leu