[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

process-per-connection with drb

Paul Brannan

1/31/2007 4:06:00 PM

Reading through drb.rb, I see that drb uses a thread-per-connection
model. I have some C++ extensions that I want to provide access to via
a drb server. Unfortunately, these extensions are not safe to use with
ruby's green threads, and it is impossible to make them thread-safe,
given the mechanism ruby uses to switch thread contexts.

I want to instead use a process-per-connection model and have a pool of
processes waiting to handle requests. How should I go about
implementing this?

Paul