multithreading with an external library
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
However, the embedded FB supports multiple connections with multiple
threads. Since Ruby doesn't have "real" threads yet, can it be done with
If not, I'm gonna have to turn to Python, as it does OS threads and
already has an excellent Python binding (kinterbasdb).
Re: multithreading with an external library
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
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
|All times are GMT. The time now is 07:43 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.