Php process security? Does php process processes one by one or multiple processes? is the process safe if it is a multi-process? Why is it fast in fastcgi mode? what is Php processing processes. The php interpreter is a process that interprets and executes a PHP script and then destroys the process. Of course, multi-process security does not share things, and shared resources are also locked. Fastcgi is because the PHP interpreter acts as a server program to listen to network connections and no longer frequency php process security?
Does php process processes one by one or multiple processes? is the process safe if it is a multi-process? Why is it fast in fastcgi mode?
The php interpreter is a process that interprets and executes a PHP script and then destroys the process.
Of course, multi-process security does not share things, and shared resources are also locked.
Fastcgi is because the PHP interpreter monitors network connections as a server program and does not frequently create or destroy it.
------ Solution --------------------
Upstairs
------ Solution --------------------
A process corresponds to a PHP interpreter. Php-fpm is a process manager. at startup, N processes are initialized (10 by default), and the N processes are responsible for script processing, unless php-fpm is restarted or stopped, the N processes will remain alive. after processing a request, wait for php-fpm to allocate the next request, saving the overhead for frequent process destruction and creation.
------ Solution --------------------
A singleton is an example. a fcgi process can only execute one script. your Singleton is multi-process and cannot be shared.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.