Php processes do not support multithreading. In some scenarios, you can use php to implement multi-process to make up for this deficiency:
#! /Usr/bin/env php <? Php $ cmds = array ('/apps/bin/launcher. php ', 'charge/promotion_props_stat.php', 'mobile', 1), array ('/apps/bin/launcher. php ', 'charge/promotion_props_stat.php', 'mobile', 2), array ('/apps/bin/launcher. php ', 'charge/promotion_props_stat.php', 'click', 1), array ('/apps/bin/launcher. php ', 'charge/promotion_props_stat.php', 'click', 2), array ('/apps/bin/launcher. php ', 'charge/promotion_props_stat.php', 1), array ( '/Apps/bin/launcher. php', 'charge/promotion_props_stat.php', 2); foreach ($ cmds as $ cmd) {$ pid = pcntl_fork (); if ($ pid =-1) {// process creation failure die ('fork child process failure! ');} Else if ($ pid) {// The parent process processing logic pcntl_wait ($ status, WNOHANG );} else {// sub-process processing logic pcntl_exec ('/usr/local/bin/php', $ cmd );}}