Thank you very much, gentelmen.

I'm happy for now, I guess. I do undestand perl threading issue, my problem was rather on how mod_perl and apache thread work together. I'm quite satisfied with your explanations. Thanks a lot.

Pavel

P.S.: Stas, ... yes I saw many segfaults... :)

Perrin Harkins wrote:
Pavel Hlavnicka wrote:

Is it possible, that some new interpreter is cloned later then the pool is created


"PerlInterpMax

If all running interpreters are in use, mod_perl will clone new interpreters to handle the request, up until this number of interpreters is reached. when PerlInterpMax is reached, mod_perl will block (via COND_WAIT()) until one becomes available (signaled via COND_SIGNAL())."

From http://perl.apache.org/docs/2.0/user/config/config.html#Threads_Mode_Specific_Directives


and is it possible, that ANY interpreter cloning will clone my global data? (I really mean e.g object stored in my handler in global variables, perhaps just lexical ones)


All of your data is always cloned, just as it was when apache forked in mod_perl 1.x. Remember, Perl threads share nothing unless you tell them to.

Is there something specific that you're worried about?

- Perrin

-- Pavel Hlavnicka Ginger Alliance www.gingerall.com



Reply via email to