in reply to Re: Threaded MPM Sharing Variables (this time with complete test code)
in thread Threaded MPM Sharing Variables (this time with complete test code)
Which leads me to think that for each running instance of apache2, the variable will have to be initialized at least once. Or is that too shortsighted?root@myserver:/usr/local/lib/site_perl/U2D# ps aux | grep apa root 9546 0.0 0.3 148856 9920 ? Ss 13:16 0:00 /usr/ +sbin/apache2 -k start www-data 9549 0.0 0.3 173424 9880 ? S 13:16 0:00 /usr/ +sbin/apache2 -k start www-data 9550 0.0 0.3 173424 9860 ? S 13:16 0:00 /usr/ +sbin/apache2 -k start www-data 9551 0.0 0.3 173424 9860 ? S 13:16 0:00 /usr/ +sbin/apache2 -k start www-data 9552 0.0 0.3 173424 9860 ? S 13:16 0:00 /usr/ +sbin/apache2 -k start www-data 9553 0.0 0.3 173424 9860 ? S 13:16 0:00 /usr/ +sbin/apache2 -k start www-data 9618 0.0 0.3 173424 9860 ? S 13:19 0:00 /usr/ +sbin/apache2 -k start root 9723 0.0 0.0 7624 920 pts/0 S+ 13:20 0:00 grep +apa root@myserver:/usr/local/lib/site_perl/U2D# grep Initializing /var/www +/testSharing.log 02-08-2011 13:19:38:736 9549-172922688: Initializing fruits. 02-08-2011 13:19:39:361 9550-172922688: Initializing fruits. 02-08-2011 13:19:39:426 9551-172922688: Initializing fruits. 02-08-2011 13:19:39:457 9552-172922688: Initializing fruits. 02-08-2011 13:19:39:480 9553-172922688: Initializing fruits. 02-08-2011 13:19:39:499 9618-172922688: Initializing fruits.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Threaded MPM Sharing Variables (this time with complete test code)
by busymeister (Initiate) on Aug 05, 2011 at 04:55 UTC | |
by Neighbour (Friar) on Aug 08, 2011 at 08:13 UTC | |
by busymeister (Initiate) on Aug 09, 2011 at 05:01 UTC | |
by busymeister (Initiate) on Aug 09, 2011 at 05:48 UTC | |
by busymeister (Initiate) on Aug 09, 2011 at 06:15 UTC |