On Sep 20, 2007, at 12:36, Wayne E. Seguin wrote: > On Sep 20, 2007, at 15:27 , Eric Hodel wrote: >> Most of the C functions in IO will allow threads to be switched. >> Eventually they run into rb_thread_schedule(). You can get non- >> blocking IO without writing C code, IO can handle that for you. > > Can you provide me with an example or point me to a url to RTFM? io/nonblock.rb and IO#read_nonblock should get you started. -- Poor workers blame their tools. Good workers build better tools. The best workers get their tools to do the work for them. -- Syndicate Wars