From: "Iñaki Baz Castillo" Date: 2008-07-02T02:54:50+09:00 Subject: Re: Threads and Ruby El Martes, 1 de Julio de 2008, Charles Oliver Nutter escribió: > Robert Klemme wrote: > > As Ara said, in this case processes are the better choice for several > > reasons: they have separation out of the box and they can make use of > > multiple cores (which Ruby threads can't unless you use JRuby - this > > may change with future 1.9 versions AFAIK). > > This is an eventual goal, but I asked ko1 about it and such work has not > started yet. It will be hard. > > Processes are probably better under Ruby, but it's most definitely worth > trying threads under JRuby first. Now I'm doing a server in Ruby using green threads (Ruby MRI). In the future it's possible I try to migrate it to JRuby to use real threads. Just a question: Will my code and for now green threads work correctly under JRuby and green threads will become OS threads magically? or must I change my code to work with OS threads? Thanks for any explanation. -- Iñaki Baz Castillo