|
|
ru.cgi.perl- RU.CGI.PERL ------------------------------------------------------------------ From : Igor Gerdler 2:5020/400 10 Apr 2002 21:50:23 To : Andrey Sapozhnikov Subject : Возражаю аргументированно... -------------------------------------------------------------------------------- .su> <3CB47588.3090004@icb.chel.su> From: "Igor Gerdler" <perl@doreworld.com> Добрый день, уважаемый Андрей! > P.S. Hо спрашивающего, как я понял, интересовали не механизмы ядра > направленные на повышения производительности и как бы вообще не в топик, > а то, будет ли переменная созданная в родительской копии апача "общей", > т.е. один записал, а другие увидели. Hет, не будет. Hикакого неявного > межпроцессного обмена данными нет. Это не треды, это раздельные процессы > с раздельной памятью. Из описания, которое я уже упоминал (perl.apache.org/guide), цитирую: "Do not forget that if you preload most of your code at server startup, the newly forked child gets ready very fast, because it inherits most of the preloaded code and the perl interpreter from the parent process." и "How do you find out if the code you write is shared between the processes or not? The code should be shared, except where it is on a memory page with variables that change. Some variables are read-only in usage and never change. For example, if you have some variables that use a lot of memory and you want them to be read-only. As you know the variable becomes unshared when the process modifies its value." Что Вы на это скажите? Всего доброго! Игорь Гердлер --- ifmail v.2.15dev5 * Origin: Demos online service (2:5020/400) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.cgi.perl/657724e2b05e.html, оценка из 5, голосов 10
|