From: ara.t.howard@... Date: 2005-12-09T12:40:52+09:00 Subject: Re: fastcgi and shared interpreters On Fri, 9 Dec 2005, James Britt wrote: > I'm doing more work with fascgi and scgi, and I'm looking for some > clarification. Are there configurations for either of these where multiple > application processes are sharing the same Ruby interpreter? > > If my own application code is not using threads, do I need to be concerned > with race conditions or data access conflicts? fastcgi is process based - you don't need to worry about any concurrent access __other__ than between any two processes. for instance, if your application did something like log = open "log", "w" log << 42 then you could quite possibly have two processes writing to the log file since apache can, depending on configuration, spawn a few processes to handle requests. each request, however, defintely is running in one ruby interpreter. regards. -a -- =============================================================================== | ara [dot] t [dot] howard [at] noaa [dot] gov | all happiness comes from the desire for others to be happy. all misery | comes from the desire for oneself to be happy. | -- bodhicaryavatara ===============================================================================