From: Shashank Date Date: 2003-04-17T09:17:20+09:00 Subject: Re: example "Brian Candler" wrote in message [snip] > > Does anybody known a good link for this? > > I don't know about good links... but if I were doing this, I would run the > data receiver as a separate thread. It then simply has to receive messages, > and when it has a complete message that it wants to do something with, it > just does. This might mean putting it in a queue which the main thread picks > from. You can use mutexes and condition variables to make the queue > thread-safe, and to allow the main thread to sleep until a message arrives. And if you want to receive data from multiple distributed data points, you may want to build a distributed Ruby architecture using dRuby: makes it very simple, yet elegant and powerful.See http://raa.ruby-lang.org/list.rhtml?name=druby HTH, -- shanko