parallel processing - Parallelism in php -
parallel processing - Parallelism in php -
i want optimize part of code improve performance.since application create utilize of commandline tool , think improve performance execute lines of code in parallel rather executing code sequentially
<?php $value = exec("command goes here"); //this takes time /* instructions here don't depend on $value */ /* instructions here don't depend on $value */ $result = $value*2 ; //this dumb illustration ?>
i want execute codes don't depend on value @ same time $value
whole script execute faster rather waiting exec()
complete
unfortunately php despond in parallelism, concurrent,... programming. , never know why php dosen't back upwards these of import things , when php want back upwards these !!.
but may want utilize fork in php (if know problems , troubles in fork )
http://php.net/manual/en/function.pcntl-fork.php
http://codereview.stackexchange.com/questions/22919/how-to-fork-with-php-4-different-approaches
php parallel-processing pipelining
Comments
Post a Comment