In-depth analysis of php's POSIX functions and process testing_PHP tutorial

WBOY
Release: 2016-07-21 15:09:34
Original
884 people have browsed it

Copy code The code is as follows:

echo posix_getpid(); //8805
sleep(10);
?>


Reuse

#ps -ax


If you open more browser requests at this time, you will find that Apache has automatically added several new processes


We found that the same process is not always requested


Restart apache
# /usr/local/apache2/bin/apachectl restart
We found that Apache returned to the default number of processes.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/327274.htmlTechArticleCopy the code as follows: ?php echo posix_getpid(); //8805 sleep(10); ? Reuse# ps -ax If you open more browser requests at this time, you will find that Apache automatically adds several new entries...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template