From: Eric Hodel Date: 2006-03-07T10:36:35+09:00 Subject: Re: Non-blocking KitchenSink On Mar 3, 2006, at 3:09 PM, Logan Capaldo wrote: > On Mar 3, 2006, at 5:46 PM, Aaron Becker wrote: > >> Is it possible to use Webrick, SOAP client, and SOAP server code >> all in >> the same script without blocking? I tried different threads for the >> SOAP server and SOAP client, but that did not prevent blocking. > > Ruby's threads are in-process any blocking call blocks the whole > process. So I suppose the answer is no. However, what you can try > is using multiple processes and coordinating them with Drb. Not entirely true. Calls to C code other than socket operations block the whole process. read and select and accept only block the thread that calls that method since the core libraries wrap all that up for you. -- Eric Hodel - drbrain@segment7.net - http://blog.segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com