On Tue, 2005-03-15 at 22:27 +0300, Vladimir D Belousov wrote: > As I know, my module has been loaded only once and has been loaded by > the root httpd process. > And when any httpd forks exist (prefork), let's present next situation: > one of the existing httpd forks changes value of any variable (in my > example $s). > Whether value in relation to other existing forks will change?
No. There is no sharing of variables between mod_perl processes. > How I understand, the apache creates the new instruction point for each > process - the index to the current instruction (standart in Unix, do > not load the code again), but where from does it get the variables and > any data? This is just standard forking stuff. Forked processes do not share any data. There is something called copy-on-write that works to save memory between forked processes, but no actual sharing of data like you're talking about here. - Perrin