PHP: What does pcntl_fork() really do?
问题 PHP's pcntl_fork function is supposed to fork a process just as the standard fork function in C. But I was wondering if this function really forks the process or if it emulates that behavior in a different way. If it really forks the process then it's clear which process that is: one of Apache's child processes. That's OK as long as Apache is using the prefork MPM (i.e. one process per request). But what does happen if Apache is using the worker MPM?? When the worker MPM is being used, every