On 9/25/06, Frank Reiff <reiff / publicspace.net> wrote:
> Hi,
>
> I'm in the process of moving from the J2EE to the Ruby world (+ Apache,
> Linux, MySQL, etc.), so this is likely to be a "stupid newbie" question.
>
> I use mod_ruby and understand that FastCGI operates along similar lines:
> there is one instance of the Ruby interpreter per Apache thread, but of
> course there may be lots of Apache threads, so lots of interpreters.

No, it's one instance of the ruby interpreter for the whole apache, as
I recently found out.  Plus ruby is not thread safe.  Actually most
interpreted languages are not thread safe.  Perl is, and it's the only
embeddded interpreter for apache that I know of that runs under the
worker mpm.   Fastcgi is run completely outside of apache and it
communicates with apache using it's own protocol.