Aristarkh A Zagorodnikov wrote: > > > Hi, > > > > with Ruby serverside (not mod_ruby): > > An http request is made requesting a Ruby program. This starts Ruby, and > > the Ruby program is executed. Let's say it creates, deletes, and updates > > files, among other things. > > Now a second http request is made to the same Ruby proram. > > > > 1. Will a new Ruby interpreter be started? > It totally depends on server software. If it's plain Apache with mod_cgi or > mod_ruby (or something other using CGI-like interface), then the answer is > yes. I think, with mod_ruby this is not the case. All scripts use the same interpreter. > > 2. Can the two running Ruby programs interfer each other? > > For example: could the one instance try to update a file, while the > > other instance it @ it, and the whole shebang goes wrong? Using a mutex with mod_ruby is not possible, because the other script has no access to the Mutex object. Try using FastCGI where this is possible. Regards, Michael -- Michael Neumann merlin.zwo InfoDesign GmbH http://www.merlin-zwo.de