From: Glen Holcomb Date: 2009-10-30T05:30:15+09:00 Subject: Re: Using multicore CPUs in parallel tasks --0015175cd96237b218047718c72f Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On Thu, Oct 29, 2009 at 2:04 PM, Tony Arcieri wrote: > On Thu, Oct 29, 2009 at 11:48 AM, Glen Holcomb > wrote: > > > You are going to want Ruby 1.9 for this. In 1.8 threads are "green", > > basically they only exists as threads inside the VM so you still only h= it > > one core and any blocking system I/O will block all of your threads. > > > > Ruby 1.9 isn't going to help you when using threads to distribute > computation across CPU cores. The Global VM Lock ensures that simultaneo= us > computation is still limited to one core. > > JRuby, on the other hand, does not have this limitation. On MRI/1.9 I > would > recommend using multiple processes. > > -- > Tony Arcieri > Medioh/Nagravision > Ah, I did not know that. --=20 "Hey brother Christian with your high and mighty errand, Your actions speak so loud, I can=92t hear a word you=92re saying." -Greg Graffin (Bad Religion) --0015175cd96237b218047718c72f--