I plan to use Ruby/DL with Firebird 1.5’s “embedded server” DLL on
win32. The goal is to provide an FB database server which can accept
connections & commands (written in YAML) from other Ruby/Python/Perl
programs.
However, the embedded FB supports multiple connections with multiple
threads. Since Ruby doesn’t have “real” threads yet, can it be done with
Ruby?
If not, I’m gonna have to turn to Python, as it does OS threads and
already has an excellent Python binding (kinterbasdb).
···
–
dave
One way to solve this is to have a layer that transfers messages to and
from your threaded library and Ruby. This generally involves a
thread-safe queue when sending messages to Ruby, and picking the right
thread to send a message to when sending messages from Ruby. There are
already some libraries out there that do this, but I can’t remember
which ones.
Paul
···
On Sun, Jan 04, 2004 at 08:37:39PM +0900, David Garamond wrote:
However, the embedded FB supports multiple connections with multiple
threads. Since Ruby doesn’t have “real” threads yet, can it be done with
Ruby?