From: Robert Klemme Date: 2005-09-27T04:31:42+09:00 Subject: Re: Ruby Threads 101 Joe Van Dyk wrote: > On 9/26/05, James Edward Gray II wrote: >> On Sep 26, 2005, at 12:37 PM, Ben wrote: >> >>> I looked through rubyquiz.com (where I've been pulling a few of our >>> exercises), but nothing jumped out at me. Did I miss something? >> >> Glad to hear it's proving useful. >> >> We haven't had a good threading problem yet, but I'm very open to the >> idea if someone can think one up... > > I have one about a bunch of hungry commie philosophers... LOL Ben, you could start with a simple problem (like farmer worker e.g. a small app that crawls web pages in parallel with controllable degree of parallelism) to get the basic feeling and then work your way up to more complicated things. I once cooked something up on the Wiki (including a superfluous queue implementation - there is one that comes with Ruby) although I guess it won't be much use for you as you seem to be rather senior when it comes to threading. http://www.rubygarden.org/ruby?MultiThreading One thing to keep in mind is that Ruby threads are not (yet) native threads. Despite of that they work quite nicely IMHO. Kind regards robert