Thank you all very much.

Kuros
----- Original Message -----
From: "Brian Candler" <B.Candler / pobox.com>
To: "ruby-talk ML" <ruby-talk / ruby-lang.org>
Sent: Wednesday, April 23, 2003 10:20 AM
Subject: Re: Select()


> On Thu, Apr 24, 2003 at 12:09:55AM +0900, Bill Kelly wrote:
> > Bjorn Stahl posted a nice threaded TCPServer example at
> > http://www.ruby-talk.com/59018
>
> There's a simpler example within this page:
> http://www.rubygarden.org/ruby?SingletonTutorial
> (towards the end of section 2) although it doesn't include the concurrency
> limit.
>
> I don't think you should need to use 'select' when writing a threaded
> server. If you want a timeout, it's simpler to do:
>
>    require 'timeout'
>    status = timeout(5) do
>      # something which may take time
>    end
>
> Cheers,
>
> Brian.
>