From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <0224fcf7437ae954977afd3a2a53bdec@quanstro.net> From: erik quanstrom Date: Thu, 10 Sep 2009 05:34:54 -0400 To: 9fans@9fans.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] dial and time out Topicbox-Message-UUID: 6c10efe2-ead5-11e9-9d60-3106f5b1d025 > I have a bunch of threads, simply scheduled with yield() at the moment > (I'll use alt later on), and each of them is calling dial() at some > point. I don't want the other threads to wait for "too long" when one > of them is blocked on a dial() that will eventually time out. > So I was thinking, for each of them, of creating a proc which would > be used as a timer; it would be created just before the call to dial, > wait for some time, and then kill the dial()ing thread. And as mechiel > suggested, the dial()ing thread would also be set to kill the timer > after it successfully dialed, hence not being killed if it was fast > enough. what's the reason for not using procs? - erik