Guys, I'm looking for some help with a Ruby script which uses the 'Drb' and 'Slave' libraries. Basically, I'm doing a recursive readdir() on a directory, but with parallel processes (since Ruby Threads aren't really parallel, sigh...) and I'm running into some problems. I'm happy to post the code here, before I start begging for help on the http://www.ruby-forum.com site. Thanks, John
Hi John, I am learning Ruby right now. You can also ask your question on the bostonrb.org mailing list: http://groups.google.com/group/boston-rubygroup John Stoffel wrote:
Guys,
I'm looking for some help with a Ruby script which uses the 'Drb' and 'Slave' libraries. Basically, I'm doing a recursive readdir() on a directory, but with parallel processes (since Ruby Threads aren't really parallel, sigh...) and I'm running into some problems.
I'm happy to post the code here, before I start begging for help on the http://www.ruby-forum.com site.
Thanks, John _______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
Randy> I am learning Ruby right now. You can also ask your question on Randy> the bostonrb.org mailing list: Randy> http://groups.google.com/group/boston-rubygroup That's a great suggestion. I've been learning Ruby (on Rails) on an off for the past year or so, but this is my first real dive deep into the language and it's expectation. I'm not enjoying it really. :] Guess I'm too hardwired for Perl5. :] Thanks for the suggestions. Basically, I'm trying to extend 'philesight' to be able to recursively descend directories building it's DB of sizes, but with multiple kid or slave processes to spread the work out and have it complete faster. I actually had this working just fine with Ruby Threads, but then I found out that Ruby has a single thread for the interpretter, and jsut emulates real threads. So no performance gain. Now I'm working on forking() off kids to do the work, but the coordination is being painful. Anyone interested in what I've got? John
participants (2)
-
John Stoffel
-
Randy Cole