From: Alexander Bokovoy Date: 2001-10-16T19:54:55+09:00 Subject: [ruby-talk:22606] Re: Embedding Ruby On Tue, Oct 16, 2001 at 07:46:07PM +0900, Emiliano wrote: > Alexander Bokovoy wrote: > > > So, I could run a standalone process with embedded Ruby and have native > > threads to communicate with it for running scripts and it will be able to put > > executed scripts into different Ruby threads making whole execution > > process 'thread-safe' from point of view of multi-threaded external > > application (for example, Apache2)? > > The downside of this approach is that this (single-threaded) server > now becomes the bottleneck for your threaded server, and that you > either have to juggle lots of data in the single-threaded ruby server > to keep objects of the threaded counterart separate, or transfer data > to-and-fro over the socket to the server. I know, I know... But how much of Ruby internals are ready for something like this in case of non-availability of true thread-safety of Ruby? -- / Alexander Bokovoy $ cat /proc/identity >~/.signature `Senior software developer and analyst for SaM-Solutions Ltd.` --- Ah say, son, you're about as sharp as a bowlin' ball.