From: Robert Klemme Date: 2008-06-30T20:10:13+09:00 Subject: Re: Threads and Ruby 2008/6/30 barjunk : > I've been hunting around for information regarding threads, and to me, > it seems confusing and conflicting. > > What I'm trying to find out is...if I was going to start using threads > in Ruby, which version of Ruby should I be using. > > I've seen folks say that I should use Ruby 1.9 and others say that it > is possible to use earlier versions. Nothing that I found seemed > definitive. > > I'm new to all this, so this may be part of the problem. > > What I'd like to accomplish is starting a main ruby instance, then > launch threads from that instance that run in their own sandbox. > > At this point, I don't believe the threads need to talk with each > other, but it seems I could use some form of message passing to > accomplish this. 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). Kind regards robert -- use.inject do |as, often| as.you_can - without end