In-depth analysis of php POSIX functions and process tests. Copy the code as follows :? Phpechoposix_getpid (); 8805 sleep (10 );? # Ps-ax. at this time, if you open another browser request, you will find that Apache automatically adds several new
The code is as follows:
Echo posix_getpid (); // 8805.
Sleep (10 );
?>
Reuse
# Ps-ax
At this time, if you open another browser request, you will find that Apache automatically adds several new processes.
We found that not always requesting the same process
Restart apache
#/Usr/local/apache2/bin/apachectl restart
We found that Apache was restored to the default number of processes.
The http://www.bkjia.com/PHPjc/327274.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/327274.htmlTechArticle code is as follows :? Php echo posix_getpid (); // 8805 sleep (10 );? # Ps-ax. at this time, if you open another browser request, you will find that Apache automatically adds several new requests...