From: ts decoux@moulon.inra.fr
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
threads =
check_status = proc {
$labels.each_key do |aHost|
threads << Thread.new(aHost) do |host|
[…]
Now, the “threads.each do |t| t.join end” currently doesn’t work
(probably
obvious). I know this because the memory stack size increases with
every
loopThread#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/