Mental Guy wrote: > On Wed, 2007-09-12 at 10:15 +0900, Cd Cd wrote: >> In this case, the thread isn't creating a process. Can someone shed some >> light on this behavior or discrepancy. > > It sounds like in the latter case, most of the threads aren't living > long enough to create the process. If you don't want your program to > exit early and kill some or all of the threads, you need your main > thread to call Thread#join on each one of them. > > -mental Okay, bear with this. When I copied the program, I forgot part of it -( Here is the entire thing. #!/usr/local/bin/ruby threads=[] 4.times do |i| threads[i]=Thread.new do %x{/usr/local/bin/party} end end threads.each{|thr| thr.join} So do I move join into the do/end block? -- Posted via http://www.ruby-forum.com/.