From: Mike Wilson Date: 2004-02-27T02:16:17+09:00 Subject: Re: Need some thread help >From: ts >Reply-To: ruby-talk@ruby-lang.org >To: ruby-talk@ruby-lang.org (ruby-talk ML) >CC: ruby-talk@ruby-lang.org >Subject: Re: Need some thread help >Date: Fri, 27 Feb 2004 01:52:15 +0900 > > >>>>> "M" == Mike Wilson writes: > >M> threads = [] >M> check_status = proc { >M> $labels.each_key do |aHost| >M> threads << Thread.new(aHost) do |host| >[...] >M> Now, the "threads.each do |t| t.join end" currently doesn't work >(probably >M> obvious). I know this because the memory stack size increases with >every >M> loop > > Thread#join work, but you never remove the object from the Array threads, > this is why the memory increase. > > More you have loop, more `threads' will have object > >Guy Decoux > Doh! Thanks a bunch! _________________________________________________________________ Say �good-bye� to spam, viruses and pop-ups with MSN Premium -- free trial offer! http://click.atdmt.com/AVE/go/onm00200359ave/direct/01/