From: ajay paswan Date: 2012-10-09T01:42:49+09:00 Subject: Multithread in DRb Suppose I want to create 6 threads in client side following: http://segment7.net/projects/ruby/drb/introduction.html which one is better at cleint side? === require 'drb' DRb.start_service remote_array = DRbObject.new nil, ARGV.shift for i in 1..6 children[i]=Thread.New do remote_array << 1 ----do other things end --rest of the program ===== OR ==== require 'drb' for i in 1..6 children[i]=Thread.New do DRb.start_service remote_array = DRbObject.new nil, ARGV.shift remote_array << 1 ----do other things end --rest of the program ==== To point out whats in my mind, in the later program I am getting a new instance of the remote object, so it will not have any resource conflict. What do you feel? 1st one or second one is better? AND WHY? -- Posted via http://www.ruby-forum.com/.