From: Arto Pastinen Date: 2005-12-19T16:49:45+09:00 Subject: Re: nonblocking TCPSocket in multithread software. ah.. the magic select.. :) I tried it some time ago, but i couldnt get it work, i cant remember maby it was syntax error, i have inspect ruby only couple weeks.. But this was what i have searched. Thank you Tanaka!! 2005/12/19, Tanaka Akira : > In article <966a04530512182258u28aa1d55h@mail.gmail.com>, > Arto Pastinen writes: > > > I try to implemented multiplexed architecture, and the Thread still > > blocks and it is not acceptable, i even cannot see difference if i > > remove file descriptor mod line or if i leave it.. btw. i dont know > > nothing programming native file descriptors. maby i should read it. > > How do you multiplex I/O? IO.select? > > If you use IO.select and call IO#sysread only wnen IO.select > notify readability, it should not block. > -- > Tanaka Akira > >