in reply to Using select and IO::Select

duff++, good job and much needed.

One of the great things about select is its efficiency. Instead of busying around a polling loop, select lets your process go to sleep until there is something to do. That does not speed up the process where select is, but rather frees its time slice for all the other processes you and other users may run. It's the neighborly thing to do, and good for throughput.

There are some more questions I think could be covered. I don't necessarily know the answers.

Again, this is a very good job, and welcome information. You can run your pod through pod2html to get a good format for posting here.

After Compline,

Replies are listed 'Best First'.
Re^2: Using select and IO::Select
by tachyon (Chancellor) on Jul 05, 2004 at 00:46 UTC

    Signals are unsafe - ie they basically interrupt anything with no regard to whether it is a good idea/time or not. See Re: Dormus interruptus if you want to test it but they interrupt selects before timeout expiry.



Re^2: Using select and IO::Select
by duff (Parson) on Jul 06, 2004 at 14:41 UTC

    Thanks and thanks. If you do know any of the answers to your questions you could send them to me and make my life slightly easier :) I plan on updating the tutorial over the coming week by addressing the questions you raise (and any others I can think of).